Basic probability and statistics module
Return sample(s) \(x\) from a uniform distribution such that \(x\in[-1,1]\)
Return a sample from a uniform distribution in the range \(x\in[-1,1]\).
Pseudo-random number
Return \(N\) samples from a uniform distribution in the range \(x\in[-1,1]\).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | N | Number of samples |
Pseudo-random number array
Return sample(s) \(x\) from an approximate normal distribution such that \(x\in[-6,6]\), \( \sigma \approx 1.0 \) and \( \mu \approx 0.0 \).
Return a sample from an approximate normal distribution with a mean of \( \mu \approx 0.0\) and a standard deviation of \( \sigma \approx 1.0 \). In this approximate distribution, \(x\in[-6,6]\).
Pseudo-random number
Return \(N\) samples from an approximate normal distribution with a mean of \(\mu=0\) and a standard deviation of \(\sigma=1\). In this approximate distribution, \(x\in[-6,6]\).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | N | Number of samples |
Pseudo-random number array
Compute the mean of an input array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | d | Data to process |
Mean
Compute the standard deviation of an input array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | d | Data to process |
Standard deviation
Set the pseudo-random number generator seed
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer | :: | S |