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)

Syntax

public static Nullable<double> Avg<TPayload>(
    this CepWindow<TPayload> window,
    Expression<Func<TPayload, Nullable<ulong>>> input
)
public:
generic<typename TPayload>
[ExtensionAttribute]
static Nullable<double> Avg(
    CepWindow<TPayload>^ window,
    Expression<Func<TPayload, Nullable<unsigned long long>>^>^ input
)
static member Avg<'TPayload> : 
        window:CepWindow<'TPayload> *
        input:Expression<Func<'TPayload, Nullable<uint64>>> -> Nullable<float>
<ExtensionAttribute>
Public Shared Function Avg(Of TPayload) (
    window As CepWindow(Of TPayload),
    input As Expression(Of Func(Of TPayload, Nullable(Of ULong)))
) As Nullable(Of Double)

Parameters

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.

See Also

Avg Overload
CepWindowExtensionMethods Class
Microsoft.ComplexEventProcessing.Linq Namespace

Return to top