Class PoissonDistribution
Inherited Members
Namespace: Experior.Core.Mathematics.Statistics.Generators.Discrete
Assembly: Experior.Core.dll
Syntax
public class PoissonDistribution : Distribution
Constructors
PoissonDistribution()
Initializes a new instance of the PoissonDistribution class, using a StandardGenerator as underlying random number generator.
Declaration
public PoissonDistribution()
PoissonDistribution(Generator)
Initializes a new instance of the PoissonDistribution class, using the specified Generator as underlying random number generator.
Declaration
public PoissonDistribution(Generator generator)
Parameters
Type | Name | Description |
---|---|---|
Generator | generator | A Generator object. |
Properties
Lambda
Gets or sets the parameter lambda which is used for generation of poisson distributed random numbers.
Declaration
public double Lambda { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The lambda. |
Remarks
Call IsValidLambda(Double) to determine whether a value is valid and therefor assignable.
Maximum
Gets the maximum possible value of poisson distributed random numbers.
Declaration
public override double Maximum { get; }
Property Value
Type | Description |
---|---|
System.Double | The maximum. |
Overrides
Mean
Gets the mean value of poisson distributed random numbers.
Declaration
public override double Mean { get; }
Property Value
Type | Description |
---|---|
System.Double | The mean. |
Overrides
Median
Gets the median of poisson distributed random numbers.
Declaration
public override double Median { get; }
Property Value
Type | Description |
---|---|
System.Double | The median. |
Overrides
Minimum
Gets the minimum possible value of poisson distributed random numbers.
Declaration
public override double Minimum { get; }
Property Value
Type | Description |
---|---|
System.Double | The minimum. |
Overrides
Mode
Gets the mode of poisson distributed random numbers.
Declaration
public override double[] Mode { get; }
Property Value
Type | Description |
---|---|
System.Double[] | The mode. |
Overrides
Variance
Gets the variance of poisson distributed random numbers.
Declaration
public override double Variance { get; }
Property Value
Type | Description |
---|---|
System.Double | The variance. |
Overrides
Methods
IsValidLambda(Double)
Determines whether the specified value is valid for parameter Lambda.
Declaration
public bool IsValidLambda(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The value to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if value is greater than 0.0; otherwise, false. |
Next()
Returns a poisson distributed random number.
Declaration
public int Next()
Returns
Type | Description |
---|---|
System.Int32 | A poisson distributed 32-bit signed integer. |
NextDouble()
Returns a poisson distributed floating point random number.
Declaration
public override double NextDouble()
Returns
Type | Description |
---|---|
System.Double | A poisson distributed double-precision floating point number. |