Continuous Distribution.Get Expectation Value Method
Definition
Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Get | Returns the expectation value of a function. |
Get | Returns the un-normalized expectation value of a function over the specified interval. |
GetExpectationValue(Func<Double, Double>)
Returns the expectation value of a function.
public double GetExpectationValue(
Func<double, double> function
)
Parameters
- function Func<Double, Double>
- The function to evaluate.
Return Value
DoubleThe expectation value of function.
GetExpectationValue(Func<Double, Double>, Double, Double)
Returns the un-normalized expectation value of a function over the specified interval.
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
DoubleThe expectation value of function between lowerBound and upperBound.