Provides generation of power distributed random numbers.
The implementation of the PowerDistribution and the order of parameters is based on the implementation in Mathematica.
Constructor | Description | ||
Full Usage:
PowerDistribution()
|
Initializes a new instance of the PowerDistribution class, using a StandardGenerator as underlying random number generator. |
||
|
Initializes a new instance of the PowerDistribution class, using the specified Generator as underlying random number generator.
|
||
Full Usage:
PowerDistribution(k, a)
Parameters:
float
-
The domain parameter k.
a : float
-
The shape parameter a.
|
Initializes a new instance of the PowerDistribution class with domain parameter k and shape parameter a.
|
||
Full Usage:
PowerDistribution(k, a, generator)
Parameters:
float
-
The domain parameter k.
a : float
-
The shape parameter a.
generator : Generator
-
The random number generator.
|
Initializes a new instance of the PowerDistribution class with domain parameter k and shape parameter a using the specified random number generator.
|
Instance member | Description |
Full Usage:
this.A
|
Gets or sets the parameter alpha which is used for generation of power distributed random numbers. Call PowerDistribution.IsValidAlpha to determine whether a value is valid and therefor assignable. |
Full Usage:
this.CDF
Parameters:
float
-
Argument.
Returns: float
The probability that the random variable of this probability distribution will be found at a value less than or equal to x.
Modifiers: abstract |
Calculates the cumulative distribution function.
|
Full Usage:
this.Initialize
Parameters:
float
a : float
|
Updates the helper variables that store intermediate results for generation of power distributed random numbers.
|
Full Usage:
this.IsValidAlpha
Parameters:
float
-
The value to check.
Returns: bool
if value is greater than 0.0; otherwise, .
|
|
Full Usage:
this.IsValidBeta
Parameters:
float
-
The value to check.
Returns: bool
if value is greater than 0.0; otherwise, .
|
|
Full Usage:
this.K
|
Gets or sets the domain parameter k which is used for generation of power distributed random numbers. Call PowerDistribution.IsValidBeta to determine whether a value is valid and therefor assignable. |
Full Usage:
this.Maximum
Returns: float
Modifiers: abstract |
Gets the maximum possible value of power distributed random numbers.
|
Full Usage:
this.Mean
Returns: float
Modifiers: abstract |
Gets the mean value of power distributed random numbers.
|
Full Usage:
this.Median
Returns: float
Modifiers: abstract |
Gets the median of power distributed random numbers.
|
Full Usage:
this.Minimum
Returns: float
Modifiers: abstract |
Gets the minimum possible value of power distributed random numbers.
|
Full Usage:
this.Mode
Returns: float[]
Modifiers: abstract |
Gets the mode of power distributed random numbers.
|
Full Usage:
this.NextDouble
Returns: float
A power distributed double-precision floating point number.
Modifiers: abstract |
Returns a power distributed floating point random number.
|
Full Usage:
this.PDF
Parameters:
float
-
Argument.
Returns: float
The relative likelihood for the random variable to occur at the point x.
Modifiers: abstract |
Calculates the probability density function.
|
Full Usage:
this.Quantile
Parameters:
float
-
The probability p.
Returns: float
The point x at which the cumulative distribution function PowerDistribution.CDF of argument x is equal to p.
Modifiers: abstract |
Calculates the quantile of the distribution function.
|
Full Usage:
this.Variance
Returns: float
Modifiers: abstract |
Gets the variance of power distributed random numbers.
|
Static member | Description |
Full Usage:
PowerDistribution.CDF(x, k, a)
Parameters:
float
-
The x.
k : float
-
The domain parameter k.
a : float
-
The shape parameter a.
Returns: float
|
Calculates the cumulative distribution function at the specified x.
|
Full Usage:
PowerDistribution.PDF(x, k, a)
Parameters:
float
-
The x.
k : float
-
The domain parameter k.
a : float
-
The shape parameter a.
Returns: float
|
Calculates the probability dennsity at the specified x.
|
Full Usage:
PowerDistribution.Quantile(p, k, a)
Parameters:
float
-
The probability.
k : float
-
The domain parameter k.
a : float
-
The shape parameter a.
Returns: float
The quantile at the specified probability p.
|
Calculates the quantile at the specified probability p.
|