DiscreteDistributionExpectationValue Method |
Computes the expectation value of an artibrary function.
Namespace:
Meta.Numerics.Statistics.Distributions
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public virtual double ExpectationValue(
Func<int, double> f
)
Public Overridable Function ExpectationValue (
f As Func(Of Integer, Double)
) As Double
public:
virtual double ExpectationValue(
Func<int, double>^ f
)
abstract ExpectationValue :
f : Func<int, float> -> float
override ExpectationValue :
f : Func<int, float> -> float
Parameters
- f
- Type: SystemFuncInt32, Double
The function.
Return Value
Type:
DoubleThe expectation value of the function.
See Also