Returns the un-normalized expectation value of a function over the specified interval.
Namespace:
Extreme.Statistics.Distributions
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public double GetExpectationValue(
Func<double, double> function,
double lowerBound,
double upperBound
)
Public Function GetExpectationValue (
function As Func(Of Double, Double),
lowerBound As Double,
upperBound As Double
) As Double
public:
double GetExpectationValue(
Func<double, double>^ function,
double lowerBound,
double upperBound
)
member GetExpectationValue :
function : Func<float, float> *
lowerBound : float *
upperBound : float -> float
Parameters
- function
- Type: SystemFuncDouble, Double
The function to evaluate. - lowerBound
- Type: SystemDouble
The lower bound of the interval. - upperBound
- Type: SystemDouble
The lower bound of the interval.
Return Value
Type:
DoubleThe expectation value of
function
between
lowerBound and
upperBound.
Reference