Tinker9 70bd052 (Thu Nov 9 12:11:35 2023 -0800)
Loading...
Searching...
No Matches
random.h
1#pragma once
2#include "tool/rcman.h"
3
4namespace tinker {
7template <class T>
9
13template <class T>
15
19template <class T>
20T normal(T u, T s);
21
35template <class T>
36T chiSquared(int k);
37
40}
void randomData(RcOp)
T random()
Returns a random number on [0,1] from a uniform distribution.
T chiSquared(int k)
Returns a random number as if the square of k independent standard normal N(0,1) random variables wer...
T normal()
Returns a random number from a normal Gaussian distribution with a mean of zero and a standard deviat...
ResourceOperation
Definition: rcman.h:46
Definition: testrt.h:9