Class StudentsTDistribution
Provides generation of t-distributed random numbers.
Inherited Members
Namespace: Experior.Core.Mathematics.Statistics.Generators.Continuous
Assembly: Experior.Core.dll
Syntax
public class StudentsTDistribution : Distribution
Remarks
The implementation of the StudentsTDistribution type bases upon information presented on Wikipedia - Student's t-distribution and Xycoon - Student t Distribution.
Constructors
StudentsTDistribution()
Initializes a new instance of the StudentsTDistribution class, using a StandardGenerator as underlying random number generator.
Declaration
public StudentsTDistribution()
StudentsTDistribution(Generator)
Initializes a new instance of the StudentsTDistribution class, using the specified Generator as underlying random number generator.
Declaration
public StudentsTDistribution(Generator generator)
Parameters
Type | Name | Description |
---|---|---|
Generator | generator | A Generator object. |
Properties
Maximum
Gets the maximum possible value of t-distributed random numbers.
Declaration
public override double Maximum { get; }
Property Value
Type | Description |
---|---|
System.Double | The maximum. |
Overrides
Mean
Gets the mean value of t-distributed random numbers.
Declaration
public override double Mean { get; }
Property Value
Type | Description |
---|---|
System.Double | The mean. |
Overrides
Median
Gets the median of t-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 t-distributed random numbers.
Declaration
public override double Minimum { get; }
Property Value
Type | Description |
---|---|
System.Double | The minimum. |
Overrides
Mode
Gets the mode of t-distributed random numbers.
Declaration
public override double[] Mode { get; }
Property Value
Type | Description |
---|---|
System.Double[] | The mode. |
Overrides
Nu
Gets or sets the parameter nu which is used for generation of t-distributed random numbers.
Declaration
public int Nu { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The nu. |
Remarks
Call IsValidNu(Int32) to determine whether a value is valid and therefor assignable.
Variance
Gets the variance of t-distributed random numbers.
Declaration
public override double Variance { get; }
Property Value
Type | Description |
---|---|
System.Double | The variance. |
Overrides
Methods
IsValidNu(Int32)
Determines whether the specified value is valid for parameter Nu.
Declaration
public bool IsValidNu(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if value is greater than 0; otherwise, false. |
NextDouble()
Returns a t-distributed floating point random number.
Declaration
public override double NextDouble()
Returns
Type | Description |
---|---|
System.Double | A t-distributed double-precision floating point number. |
Overrides
Reset()
Resets the Student's t-distribution, so that it produces the same random number sequence again.
Declaration
public override bool Reset()
Returns
Type | Description |
---|---|
System.Boolean | true, if the Student's t-distribution was reset; otherwise, false. |