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
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, UInt16>>The lambda expression which specifies the value that the average is computed over.
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