 | ProjectionAvgTSource Method |
Computes the average of a sequence of values.
Namespace: SphinxConnector.FluentApiAssembly: SphinxConnector (in SphinxConnector.dll) Version: 3.12.6
Syntaxpublic static float Avg<TSource>(
Expression<Func<TSource>> expression
)
Public Shared Function Avg(Of TSource) (
expression As Expression(Of Func(Of TSource))
) As Single
Parameters
- expression
- Type: System.Linq.ExpressionsExpressionFuncTSource
A function that returns the member to compute the average for.
Type Parameters
- TSource
- The type of the member.
Return Value
Type:
SingleThe computed average.
Exceptions
See Also