DiscreteDistributionExpectationValue Method
Computes the expectation value of an artibrary function.
Namespace: Meta.Numerics.Statistics.DistributionsAssembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
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
- f FuncInt32, Double
- The function.
DoubleThe expectation value of the function.