Computes the expectation value of the given function.

Namespace: Meta.Numerics.Statistics.Distributions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 2.1.0.0 (2.1.0.0)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public virtual double ExpectationValue(
	Func<double, double> f
)
Public Overridable Function ExpectationValue ( _
	f As Func(Of Double, Double) _
) As Double
public:
virtual double ExpectationValue(
	Func<double, double>^ f
)
abstract ExpectationValue : 
        f : Func<float, float> -> float 
override ExpectationValue : 
        f : Func<float, float> -> float 

Parameters

f
Func<(Of <(<'Double, Double>)>)>
The function.

Return Value

The expectation value of the function.

See Also