# CepWindowExtensionMethods Class

Provides extension methods for built-in aggregates.

## Inheritance Hierarchy

System.Object
Microsoft.ComplexEventProcessing.Linq.CepWindowExtensionMethods

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

## Syntax

```public static class CepWindowExtensionMethods
```

The CepWindowExtensionMethods type exposes the following members.

## Methods

NameDescription
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Byte>>) Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Decimal>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Double>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Int16>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Int32>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Int64>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Byte>>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Decimal>>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Double>>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Int16>>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Int32>>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Int64>>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<SByte>>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Single>>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<UInt16>>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<UInt32>>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(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.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, SByte>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Single>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(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.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, UInt32>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Avg<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, UInt64>>)Computes the average over all events in a window. The value to average over is defined in the input expression parameter.
Count<TPayload>Computes the count of events in the window.
Max<TPayload, TMaxValue> Computes the maximum of the values specified by the input parameter over a window of events.
Min<TPayload, TMinValue> Computes the minimum of the values specified by the input parameter over a window of events.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Byte>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Decimal>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Double>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Int16>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Int32>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Int64>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Byte>>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Decimal>>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Double>>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Int16>>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Int32>>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Int64>>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<SByte>>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Single>>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<UInt16>>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<UInt32>>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Nullable<UInt64>>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, SByte>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, Single>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, UInt16>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, UInt32>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Sum<TPayload>(CepWindow<TPayload>, Expression<Func<TPayload, UInt64>>) Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
UserDefinedAggregate<TPayload, TUda, TAggregateOutput>Calls a user-defined aggregate (UDA) in which the UDA does not take an additional expression to map the input event to the input that the UDA expects.
UserDefinedAggregateWithMapping<TPayload, TUda, TAggregateInput, TAggregateOutput> Calls a user-defined aggregate.
Top