Method Average
Average<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, SetWindowFieldsWindow)
Returns the average value of the numeric values. Average ignores non-numeric values.
public static decimal Average<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, decimal>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- decimal
The average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
Average<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal?>, SetWindowFieldsWindow)
Returns the average value of the numeric values. Average ignores non-numeric values.
public static decimal? Average<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal?> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, decimal?>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- decimal?
The average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
Average<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, SetWindowFieldsWindow)
Returns the average value of the numeric values. Average ignores non-numeric values.
public static double Average<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, double>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
Average<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double?>, SetWindowFieldsWindow)
Returns the average value of the numeric values. Average ignores non-numeric values.
public static double? Average<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double?> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, double?>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double?
The average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
Average<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, SetWindowFieldsWindow)
Returns the average value of the numeric values. Average ignores non-numeric values.
public static float Average<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, float>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- float
The average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
Average<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float?>, SetWindowFieldsWindow)
Returns the average value of the numeric values. Average ignores non-numeric values.
public static float? Average<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float?> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, float?>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- float?
The average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
Average<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, SetWindowFieldsWindow)
Returns the average value of the numeric values. Average ignores non-numeric values.
public static double Average<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, int>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
Average<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int?>, SetWindowFieldsWindow)
Returns the average value of the numeric values. Average ignores non-numeric values.
public static double? Average<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int?> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, int?>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double?
The average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
Average<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, SetWindowFieldsWindow)
Returns the average value of the numeric values. Average ignores non-numeric values.
public static double Average<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, long>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
Average<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long?>, SetWindowFieldsWindow)
Returns the average value of the numeric values. Average ignores non-numeric values.
public static double? Average<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long?> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, long?>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double?
The average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.