public class NormalDistribution extends ContinuousDistribution
Meaning: | Limit distribution of the sum of many independent random variables with arbitrary statistical characteristics, if the contribution of a single random variable remains neglectably small. |
---|---|
Parameters: |
|
PDF: | \(P(T=t) = f(t) = \frac{1}{\sqrt{2 \pi} \sigma} \cdot exp( -\frac{(t- \mu)^2}{2\sigma^2} )\) |
DF: | \(P(T \le t) = F(t) = \frac{1}{2} \cdot erf(\frac{t-\mu}{\sqrt{2} \sigma}) \mbox{ with } erf(x) = \frac{2}{\sqrt{\pi}} \cdot \int_0^x \! exp(-y^2) \, dy \) |
Expected value: | \(E[T]= \mu \) |
Variance: | \(VAR[T]= \sigma^2\) |
Coefficient of variation: | \(c_T= \frac{\sigma}{\mu}\) |
LST: | \(\phi(s) = exp(-\mu s + \frac{(s \sigma)^2}{2})\) |
Parser example: |
[...].Distribution = Normal
|
Modifier and Type | Field and Description |
---|---|
double |
mean |
double |
standardDeviation |
rng
CREATE_INSTANCE_METHOD_NAME
Constructor and Description |
---|
NormalDistribution(double mean,
double standardDeviation) |
NormalDistribution(double mean,
double standardDeviation,
RandomNumberGenerator rng) |
Modifier and Type | Method and Description |
---|---|
static NormalDistribution |
createInstance(SimNode ownNode,
Parameters pars,
RandomNumberGenerator rng)
as required by
ReflectionConstructable |
double |
next()
Create random numbers
|
getDefaultRNG, getRandomNumberGenerator, reset
public NormalDistribution(double mean, double standardDeviation, RandomNumberGenerator rng)
public NormalDistribution(double mean, double standardDeviation)
public static NormalDistribution createInstance(SimNode ownNode, Parameters pars, RandomNumberGenerator rng)
ReflectionConstructable
public double next()
ContinuousDistribution
next
in class ContinuousDistribution