public class TransformedDistribution extends ContinuousDistribution
Meaning: | Distribution of a random variable \(T\), that results from a linear transformation \(T = aZ + b\) of the random variable \(Z\) with a given continuous distribution ("base distribution"). |
---|---|
Parameters: |
|
PDF: | \(P(T=t) = f(t) = g(\frac{t-b}{a})\) |
DF: | \(P(T \le t) = F(t) = G(\frac{t-b}{a})\) |
Expected value: | \(E[T] = a \cdot E[Z] +b\) |
Variance: | \(VAR[T]= a^2 \cdot VAR[Z]\) |
Coefficient of variation: | \(c_T = \frac{1}{\frac{1}{c_z} + \frac{b}{a \sqrt{VAR[Z]}}}\) |
Parser example: |
[...].Distribution = TransformedDistribution
|
Modifier and Type | Field and Description |
---|---|
ContinuousDistribution |
baseDist |
double |
factor |
double |
offset |
rng
CREATE_INSTANCE_METHOD_NAME
Constructor and Description |
---|
TransformedDistribution(ContinuousDistribution baseDist) |
TransformedDistribution(ContinuousDistribution baseDist,
double offset) |
TransformedDistribution(ContinuousDistribution baseDist,
double offset,
double factor) |
Modifier and Type | Method and Description |
---|---|
static TransformedDistribution |
createInstance(SimNode ownNode,
Parameters pars,
RandomNumberGenerator rng)
as required by
ReflectionConstructable |
double |
next()
Create random numbers
|
getDefaultRNG, getRandomNumberGenerator, reset
public final ContinuousDistribution baseDist
public final double offset
public final double factor
public TransformedDistribution(ContinuousDistribution baseDist, double offset, double factor)
public TransformedDistribution(ContinuousDistribution baseDist, double offset)
public TransformedDistribution(ContinuousDistribution baseDist)
public static TransformedDistribution createInstance(SimNode ownNode, Parameters pars, RandomNumberGenerator rng)
ReflectionConstructable
public double next()
ContinuousDistribution
next
in class ContinuousDistribution