Student TDistribution.Moment Function Method
Returns the value of the moment function of the specified order.
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
The value of the moment function of order order at x.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
public override double MomentFunction(
int order,
double x
)Parameters
- order Int32
- The order of the moment function.
- x Double
- The point at which to evaluate the moment function.
Return Value
DoubleThe value of the moment function of order order at x.
Remarks
Order zero returns CDF(x)-1/2. Positive orders integrate
t^order*f(t) over the negative-infinite lower interval. A divergent
lower odd integral returns negative infinity; its full-line moment
is undefined. Divergent even integrals return positive infinity.
Exceptions
| Argument | order is less than zero. |