CepWindowExtensionMethods.Avg<TPayload> Method (CepWindow<TPayload>, Expression<Func<TPayload, Nullable<UInt64>>>)

 

Computes the average over all events in a window. The value to average over is defined in the input expression parameter.

Namespace:   Microsoft.ComplexEventProcessing.Linq
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)

public static Nullable<double> Avg<TPayload>(
	this CepWindow<TPayload> window,
	Expression<Func<TPayload, Nullable<ulong>>> input
)

Parameters

window
Type: Microsoft.ComplexEventProcessing.Linq.CepWindow<TPayload>

The window with the input events to which the average is applied to.

input
Type: System.Linq.Expressions.Expression<Func<TPayload, Nullable<UInt64>>>

The lambda expression which specifies the value that the average is computed over.

Return Value

Type: System.Nullable<Double>

The nullable value that contains the average over the events in the input window.

Type Parameters

TPayload

The payload type of window events.

Return to top
Show: