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

 

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)

Syntax

public static double Avg<TPayload>(
    this CepWindow<TPayload> window,
    Expression<Func<TPayload, ushort>> input
)
public:
generic<typename TPayload>
[ExtensionAttribute]
static double Avg(
    CepWindow<TPayload>^ window,
    Expression<Func<TPayload, unsigned short>^>^ input
)
static member Avg<'TPayload> : 
        window:CepWindow<'TPayload> *
        input:Expression<Func<'TPayload, uint16>> -> float
<ExtensionAttribute>
Public Shared Function Avg(Of TPayload) (
    window As CepWindow(Of TPayload),
    input As Expression(Of Func(Of TPayload, UShort))
) As Double

Parameters

Return Value

Type: System.Double

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

Type Parameters

  • TPayload
    The payload type of window events.

See Also

Avg Overload
CepWindowExtensionMethods Class
Microsoft.ComplexEventProcessing.Linq Namespace

Return to top