ProjectionAvgTSource Method
Computes the average of a sequence of values.
Definition
Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
The computed average.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public static float Avg<TSource>(
Expression<Func<TSource>> expression
)
VB
Public Shared Function Avg(Of TSource) (
expression As Expression(Of Func(Of TSource))
) As SingleParameters
- expression ExpressionFuncTSource
- A function that returns the member to compute the average for.
Type Parameters
- TSource
- The type of the member.
Return Value
SingleThe computed average.
Exceptions
| ArgumentNullException | Occurs when expression is null. |