ContinuousDistribution.GetExpectationValue Method

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

GetExpectationValue(Func<Double, Double>) Returns the expectation value of a function.
GetExpectationValue(Func<Double, Double>, Double, Double) Returns the un-normalized expectation value of a function over the specified interval.

GetExpectationValue(Func<Double, Double>)

Returns the expectation value of a function.
C#
public double GetExpectationValue(
	Func<double, double> function
)

Parameters

function  Func<Double, Double>
The function to evaluate.

Return Value

Double
The expectation value of function.

GetExpectationValue(Func<Double, Double>, Double, Double)

Returns the un-normalized expectation value of a function over the specified interval.
C#
public double GetExpectationValue(
	Func<double, double> function,
	double lowerBound,
	double upperBound
)

Parameters

function  Func<Double, Double>
The function to evaluate.
lowerBound  Double
The lower bound of the interval.
upperBound  Double
The lower bound of the interval.

Return Value

Double
The expectation value of function between lowerBound and upperBound.

See Also