Class ISetWindowFieldsPartitionExtensions
Extension methods that represent operations for SetWindowFields.
public static class ISetWindowFieldsPartitionExtensions
- Inheritance
-
ISetWindowFieldsPartitionExtensions
- Inherited Members
Methods
AddToSet<TInput, TValue>(ISetWindowFieldsPartition<TInput>, Func<TInput, TValue>, SetWindowFieldsWindow)
Returns a set.
public static IEnumerable<TValue> AddToSet<TInput, TValue>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, TValue> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, TValue>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- IEnumerable<TValue>
The set of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
TValue
The type of the selected values.
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, 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, 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, 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, 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.
Count<TInput>(ISetWindowFieldsPartition<TInput>, SetWindowFieldsWindow)
Returns the number of documents in the window.
public static long Count<TInput>(this ISetWindowFieldsPartition<TInput> partition, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- long
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, Func<TInput, decimal>, SetWindowFieldsWindow)
Returns the population covariance of two numeric expressions that are evaluated using documents in the partition window.
public static decimal CovariancePopulation<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal> selector1, Func<TInput, decimal> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, decimal>The selector that defines the first expression.
selector2
Func<TInput, decimal>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- decimal
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, Func<TInput, double>, SetWindowFieldsWindow)
Returns the population covariance of two numeric expressions that are evaluated using documents in the partition window.
public static double CovariancePopulation<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double> selector1, Func<TInput, double> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, double>The selector that defines the first expression.
selector2
Func<TInput, double>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, Func<TInput, int>, SetWindowFieldsWindow)
Returns the population covariance of two numeric expressions that are evaluated using documents in the partition window.
public static double CovariancePopulation<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int> selector1, Func<TInput, int> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, int>The selector that defines the first expression.
selector2
Func<TInput, int>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, Func<TInput, long>, SetWindowFieldsWindow)
Returns the population covariance of two numeric expressions that are evaluated using documents in the partition window.
public static double CovariancePopulation<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long> selector1, Func<TInput, long> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, long>The selector that defines the first expression.
selector2
Func<TInput, long>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal?>, Func<TInput, decimal?>, SetWindowFieldsWindow)
Returns the population covariance of two numeric expressions that are evaluated using documents in the partition window.
public static decimal? CovariancePopulation<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal?> selector1, Func<TInput, decimal?> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, decimal?>The selector that defines the first expression.
selector2
Func<TInput, decimal?>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- decimal?
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double?>, Func<TInput, double?>, SetWindowFieldsWindow)
Returns the population covariance of two numeric expressions that are evaluated using documents in the partition window.
public static double? CovariancePopulation<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double?> selector1, Func<TInput, double?> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, double?>The selector that defines the first expression.
selector2
Func<TInput, double?>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double?
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int?>, Func<TInput, int?>, SetWindowFieldsWindow)
Returns the population covariance of two numeric expressions that are evaluated using documents in the partition window.
public static double? CovariancePopulation<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int?> selector1, Func<TInput, int?> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, int?>The selector that defines the first expression.
selector2
Func<TInput, int?>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double?
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long?>, Func<TInput, long?>, SetWindowFieldsWindow)
Returns the population covariance of two numeric expressions that are evaluated using documents in the partition window.
public static double? CovariancePopulation<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long?> selector1, Func<TInput, long?> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, long?>The selector that defines the first expression.
selector2
Func<TInput, long?>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double?
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float?>, Func<TInput, float?>, SetWindowFieldsWindow)
Returns the population covariance of two numeric expressions that are evaluated using documents in the partition window.
public static float? CovariancePopulation<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float?> selector1, Func<TInput, float?> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, float?>The selector that defines the first expression.
selector2
Func<TInput, float?>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- float?
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, Func<TInput, float>, SetWindowFieldsWindow)
Returns the population covariance of two numeric expressions that are evaluated using documents in the partition window.
public static float CovariancePopulation<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float> selector1, Func<TInput, float> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, float>The selector that defines the first expression.
selector2
Func<TInput, float>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- float
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovarianceSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, Func<TInput, decimal>, SetWindowFieldsWindow)
Returns the sample covariance of two numeric expressions that are evaluated using documents in the partition window.
public static decimal CovarianceSample<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal> selector1, Func<TInput, decimal> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, decimal>The selector that defines the first expression.
selector2
Func<TInput, decimal>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- decimal
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovarianceSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, Func<TInput, double>, SetWindowFieldsWindow)
Returns the sample covariance of two numeric expressions that are evaluated using documents in the partition window.
public static double CovarianceSample<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double> selector1, Func<TInput, double> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, double>The selector that defines the first expression.
selector2
Func<TInput, double>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovarianceSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, Func<TInput, int>, SetWindowFieldsWindow)
Returns the sample covariance of two numeric expressions that are evaluated using documents in the partition window.
public static double CovarianceSample<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int> selector1, Func<TInput, int> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, int>The selector that defines the first expression.
selector2
Func<TInput, int>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovarianceSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, Func<TInput, long>, SetWindowFieldsWindow)
Returns the sample covariance of two numeric expressions that are evaluated using documents in the partition window.
public static double CovarianceSample<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long> selector1, Func<TInput, long> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, long>The selector that defines the first expression.
selector2
Func<TInput, long>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovarianceSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal?>, Func<TInput, decimal?>, SetWindowFieldsWindow)
Returns the sample covariance of two numeric expressions that are evaluated using documents in the partition window.
public static decimal? CovarianceSample<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal?> selector1, Func<TInput, decimal?> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, decimal?>The selector that defines the first expression.
selector2
Func<TInput, decimal?>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- decimal?
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovarianceSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double?>, Func<TInput, double?>, SetWindowFieldsWindow)
Returns the sample covariance of two numeric expressions that are evaluated using documents in the partition window.
public static double? CovarianceSample<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double?> selector1, Func<TInput, double?> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, double?>The selector that defines the first expression.
selector2
Func<TInput, double?>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double?
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovarianceSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int?>, Func<TInput, int?>, SetWindowFieldsWindow)
Returns the sample covariance of two numeric expressions that are evaluated using documents in the partition window.
public static double? CovarianceSample<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int?> selector1, Func<TInput, int?> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, int?>The selector that defines the first expression.
selector2
Func<TInput, int?>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double?
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovarianceSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long?>, Func<TInput, long?>, SetWindowFieldsWindow)
Returns the sample covariance of two numeric expressions that are evaluated using documents in the partition window.
public static double? CovarianceSample<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long?> selector1, Func<TInput, long?> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, long?>The selector that defines the first expression.
selector2
Func<TInput, long?>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double?
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovarianceSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float?>, Func<TInput, float?>, SetWindowFieldsWindow)
Returns the sample covariance of two numeric expressions that are evaluated using documents in the partition window.
public static float? CovarianceSample<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float?> selector1, Func<TInput, float?> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, float?>The selector that defines the first expression.
selector2
Func<TInput, float?>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- float?
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovarianceSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, Func<TInput, float>, SetWindowFieldsWindow)
Returns the sample covariance of two numeric expressions that are evaluated using documents in the partition window.
public static float CovarianceSample<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float> selector1, Func<TInput, float> selector2, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector1
Func<TInput, float>The selector that defines the first expression.
selector2
Func<TInput, float>The selector that defines the second expression.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- float
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
DenseRank<TInput>(ISetWindowFieldsPartition<TInput>)
Returns the document position (known as the rank) relative to other documents in the $setWindowFields stage partition.
public static decimal DenseRank<TInput>(this ISetWindowFieldsPartition<TInput> partition)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
Returns
- decimal
The document position.
Type Parameters
TInput
The type of the input documents in the partition.
Derivative<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, WindowTimeUnit, SetWindowFieldsWindow)
Returns the average rate of change within the specified window.
public static decimal Derivative<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, decimal>The selector that selects a value from the input document.
unit
WindowTimeUnitThe unit for time based derivatives.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- decimal
The average rate of change within the specified window.
Type Parameters
TInput
The type of the input documents in the partition.
Derivative<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, SetWindowFieldsWindow)
Returns the average rate of change within the specified window.
public static decimal Derivative<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 rate of change within the specified window.
Type Parameters
TInput
The type of the input documents in the partition.
Derivative<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, WindowTimeUnit, SetWindowFieldsWindow)
Returns the average rate of change within the specified window.
public static double Derivative<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, double>The selector that selects a value from the input document.
unit
WindowTimeUnitThe unit for time based derivatives.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The average rate of change within the specified window.
Type Parameters
TInput
The type of the input documents in the partition.
Derivative<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, SetWindowFieldsWindow)
Returns the average rate of change within the specified window.
public static double Derivative<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 rate of change within the specified window.
Type Parameters
TInput
The type of the input documents in the partition.
Derivative<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, WindowTimeUnit, SetWindowFieldsWindow)
Returns the average rate of change within the specified window.
public static double Derivative<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, int>The selector that selects a value from the input document.
unit
WindowTimeUnitThe unit for time based derivatives.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The average rate of change within the specified window.
Type Parameters
TInput
The type of the input documents in the partition.
Derivative<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, SetWindowFieldsWindow)
Returns the average rate of change within the specified window.
public static double Derivative<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 rate of change within the specified window.
Type Parameters
TInput
The type of the input documents in the partition.
Derivative<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, WindowTimeUnit, SetWindowFieldsWindow)
Returns the average rate of change within the specified window.
public static double Derivative<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, long>The selector that selects a value from the input document.
unit
WindowTimeUnitThe unit for time based derivatives.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The average rate of change within the specified window.
Type Parameters
TInput
The type of the input documents in the partition.
Derivative<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, SetWindowFieldsWindow)
Returns the average rate of change within the specified window.
public static double Derivative<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 rate of change within the specified window.
Type Parameters
TInput
The type of the input documents in the partition.
Derivative<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, WindowTimeUnit, SetWindowFieldsWindow)
Returns the average rate of change within the specified window.
public static double Derivative<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, float>The selector that selects a value from the input document.
unit
WindowTimeUnitThe unit for time based derivatives.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The average rate of change within the specified window.
Type Parameters
TInput
The type of the input documents in the partition.
Derivative<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, SetWindowFieldsWindow)
Returns the average rate of change within the specified window.
public static double Derivative<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
- double
The average rate of change within the specified window.
Type Parameters
TInput
The type of the input documents in the partition.
DocumentNumber<TInput>(ISetWindowFieldsPartition<TInput>)
Returns the position of a document (known as the document number) in the $setWindowFields stage partition.
public static decimal DocumentNumber<TInput>(this ISetWindowFieldsPartition<TInput> partition)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
Returns
- decimal
The document position.
Type Parameters
TInput
The type of the input documents in the partition.
ExponentialMovingAverage<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, ExponentialMovingAverageWeighting, SetWindowFieldsWindow)
Returns the exponential moving average value of the numeric values. Ignores non-numeric values.
public static decimal ExponentialMovingAverage<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal> selector, ExponentialMovingAverageWeighting weighting, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, decimal>The selector that selects a value from the input document.
weighting
ExponentialMovingAverageWeightingHow to weigh the values when computing the exponential moving average.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- decimal
The exponential moving average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
ExponentialMovingAverage<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, ExponentialMovingAverageWeighting, SetWindowFieldsWindow)
Returns the exponential moving average value of the numeric values. Ignores non-numeric values.
public static double ExponentialMovingAverage<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double> selector, ExponentialMovingAverageWeighting weighting, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, double>The selector that selects a value from the input document.
weighting
ExponentialMovingAverageWeightingHow to weigh the values when computing the exponential moving average.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The exponential moving average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
ExponentialMovingAverage<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, ExponentialMovingAverageWeighting, SetWindowFieldsWindow)
Returns the exponential moving average value of the numeric values. Ignores non-numeric values.
public static double ExponentialMovingAverage<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int> selector, ExponentialMovingAverageWeighting weighting, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, int>The selector that selects a value from the input document.
weighting
ExponentialMovingAverageWeightingHow to weigh the values when computing the exponential moving average.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The exponential moving average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
ExponentialMovingAverage<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, ExponentialMovingAverageWeighting, SetWindowFieldsWindow)
Returns the exponential moving average value of the numeric values. Ignores non-numeric values.
public static double ExponentialMovingAverage<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long> selector, ExponentialMovingAverageWeighting weighting, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, long>The selector that selects a value from the input document.
weighting
ExponentialMovingAverageWeightingHow to weigh the values when computing the exponential moving average.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The exponential moving average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
ExponentialMovingAverage<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, ExponentialMovingAverageWeighting, SetWindowFieldsWindow)
Returns the exponential moving average value of the numeric values. Ignores non-numeric values.
public static float ExponentialMovingAverage<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float> selector, ExponentialMovingAverageWeighting weighting, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, float>The selector that selects a value from the input document.
weighting
ExponentialMovingAverageWeightingHow to weigh the values when computing the exponential moving average.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- float
The exponential moving average of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
First<TInput, TValue>(ISetWindowFieldsPartition<TInput>, Func<TInput, TValue>, SetWindowFieldsWindow)
Returns the first value.
public static TValue First<TInput, TValue>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, TValue> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, TValue>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- TValue
The first of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
TValue
The type of the selected values.
Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, WindowTimeUnit, SetWindowFieldsWindow)
Returns the approximation of the area under a curve.
public static decimal Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, decimal>The selector that selects a value from the input document.
unit
WindowTimeUnitThe unit for time based integrals.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- decimal
The approximation of the area under a curve.
Type Parameters
TInput
The type of the input documents in the partition.
Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, SetWindowFieldsWindow)
Returns the approximation of the area under a curve.
public static decimal Integral<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 approximation of the area under a curve.
Type Parameters
TInput
The type of the input documents in the partition.
Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, WindowTimeUnit, SetWindowFieldsWindow)
Returns the approximation of the area under a curve.
public static double Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, double>The selector that selects a value from the input document.
unit
WindowTimeUnitThe unit for time based integrals.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The approximation of the area under a curve.
Type Parameters
TInput
The type of the input documents in the partition.
Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, SetWindowFieldsWindow)
Returns the approximation of the area under a curve.
public static double Integral<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 approximation of the area under a curve.
Type Parameters
TInput
The type of the input documents in the partition.
Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, WindowTimeUnit, SetWindowFieldsWindow)
Returns the approximation of the area under a curve.
public static double Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, int>The selector that selects a value from the input document.
unit
WindowTimeUnitThe unit for time based integrals.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The approximation of the area under a curve.
Type Parameters
TInput
The type of the input documents in the partition.
Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, SetWindowFieldsWindow)
Returns the approximation of the area under a curve.
public static double Integral<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 approximation of the area under a curve.
Type Parameters
TInput
The type of the input documents in the partition.
Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, WindowTimeUnit, SetWindowFieldsWindow)
Returns the approximation of the area under a curve.
public static double Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, long>The selector that selects a value from the input document.
unit
WindowTimeUnitThe unit for time based integrals.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The approximation of the area under a curve.
Type Parameters
TInput
The type of the input documents in the partition.
Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, SetWindowFieldsWindow)
Returns the approximation of the area under a curve.
public static double Integral<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 approximation of the area under a curve.
Type Parameters
TInput
The type of the input documents in the partition.
Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, WindowTimeUnit, SetWindowFieldsWindow)
Returns the approximation of the area under a curve.
public static double Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, float>The selector that selects a value from the input document.
unit
WindowTimeUnitThe unit for time based integrals.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- double
The approximation of the area under a curve.
Type Parameters
TInput
The type of the input documents in the partition.
Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, SetWindowFieldsWindow)
Returns the approximation of the area under a curve.
public static double Integral<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
- double
The approximation of the area under a curve.
Type Parameters
TInput
The type of the input documents in the partition.
Last<TInput, TValue>(ISetWindowFieldsPartition<TInput>, Func<TInput, TValue>, SetWindowFieldsWindow)
Returns the last value.
public static TValue Last<TInput, TValue>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, TValue> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, TValue>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- TValue
The last of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
TValue
The type of the selected values.
Locf<TInput, TValue>(ISetWindowFieldsPartition<TInput>, Func<TInput, TValue>, SetWindowFieldsWindow)
Returns the last observation carried forward.
public static TValue Locf<TInput, TValue>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, TValue> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, TValue>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- TValue
The last observation carried forward.
Type Parameters
TInput
The type of the input documents in the partition.
TValue
The type of the selected values.
Max<TInput, TValue>(ISetWindowFieldsPartition<TInput>, Func<TInput, TValue>, SetWindowFieldsWindow)
Returns the maximum value.
public static TValue Max<TInput, TValue>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, TValue> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, TValue>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- TValue
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
TValue
The type of the selected values.
Min<TInput, TValue>(ISetWindowFieldsPartition<TInput>, Func<TInput, TValue>, SetWindowFieldsWindow)
Returns the minimum value.
public static TValue Min<TInput, TValue>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, TValue> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, TValue>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- TValue
The minimum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
TValue
The type of the selected values.
Push<TInput, TValue>(ISetWindowFieldsPartition<TInput>, Func<TInput, TValue>, SetWindowFieldsWindow)
Returns a sequence of values.
public static IEnumerable<TValue> Push<TInput, TValue>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, TValue> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, TValue>The selector that selects a value from the input document.
window
SetWindowFieldsWindowThe window boundaries.
Returns
- IEnumerable<TValue>
A sequence of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
TValue
The type of the selected values.
Rank<TInput>(ISetWindowFieldsPartition<TInput>)
Returns the document position (known as the rank) relative to other documents in the $setWindowFields stage partition.
public static decimal Rank<TInput>(this ISetWindowFieldsPartition<TInput> partition)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
Returns
- decimal
The document position.
Type Parameters
TInput
The type of the input documents in the partition.
Shift<TInput, TValue>(ISetWindowFieldsPartition<TInput>, Func<TInput, TValue>, int)
Returns the value from an expression applied to a document in a specified position relative to the current document.
public static TValue Shift<TInput, TValue>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, TValue> selector, int by)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, TValue>The selector that selects a value from the input document.
by
intThe relative position of the document to evaluate the selector on to shift a value to this document.
Returns
- TValue
The value from an expression applied to a document in a specified position relative to the current document.
Type Parameters
TInput
The type of the input documents in the partition.
TValue
The type of the selected values.
Shift<TInput, TValue>(ISetWindowFieldsPartition<TInput>, Func<TInput, TValue>, int, TValue)
Returns the value from an expression applied to a document in a specified position relative to the current document.
public static TValue Shift<TInput, TValue>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, TValue> selector, int by, TValue defaultValue)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
selector
Func<TInput, TValue>The selector that selects a value from the input document.
by
intThe relative position of the document to evaluate the selector on to shift a value to this document.
defaultValue
TValueThe default value to use if the document position is outside the partition.
Returns
- TValue
The value from an expression applied to a document in a specified position relative to the current document.
Type Parameters
TInput
The type of the input documents in the partition.
TValue
The type of the selected values.
StandardDeviationPopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, SetWindowFieldsWindow)
Calculates the population standard deviation of the input values.
public static decimal StandardDeviationPopulation<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 population standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationPopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, SetWindowFieldsWindow)
Calculates the population standard deviation of the input values.
public static double StandardDeviationPopulation<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 population standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationPopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, SetWindowFieldsWindow)
Calculates the population standard deviation of the input values.
public static double StandardDeviationPopulation<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 population standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationPopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, SetWindowFieldsWindow)
Calculates the population standard deviation of the input values.
public static double StandardDeviationPopulation<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 population standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationPopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal?>, SetWindowFieldsWindow)
Calculates the population standard deviation of the input values.
public static decimal? StandardDeviationPopulation<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 population standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationPopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double?>, SetWindowFieldsWindow)
Calculates the population standard deviation of the input values.
public static double? StandardDeviationPopulation<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 population standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationPopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int?>, SetWindowFieldsWindow)
Calculates the population standard deviation of the input values.
public static double? StandardDeviationPopulation<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 population standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationPopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long?>, SetWindowFieldsWindow)
Calculates the population standard deviation of the input values.
public static double? StandardDeviationPopulation<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 population standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationPopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float?>, SetWindowFieldsWindow)
Calculates the population standard deviation of the input values.
public static float? StandardDeviationPopulation<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 population standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationPopulation<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, SetWindowFieldsWindow)
Calculates the population standard deviation of the input values.
public static float StandardDeviationPopulation<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 population standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, SetWindowFieldsWindow)
Calculates the sample standard deviation of the input values.
public static decimal StandardDeviationSample<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 sample standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, SetWindowFieldsWindow)
Calculates the sample standard deviation of the input values.
public static double StandardDeviationSample<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 sample standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, SetWindowFieldsWindow)
Calculates the sample standard deviation of the input values.
public static double StandardDeviationSample<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 sample standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, SetWindowFieldsWindow)
Calculates the sample standard deviation of the input values.
public static double StandardDeviationSample<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 sample standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal?>, SetWindowFieldsWindow)
Calculates the sample standard deviation of the input values.
public static decimal? StandardDeviationSample<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 sample standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double?>, SetWindowFieldsWindow)
Calculates the sample standard deviation of the input values.
public static double? StandardDeviationSample<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 sample standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int?>, SetWindowFieldsWindow)
Calculates the sample standard deviation of the input values.
public static double? StandardDeviationSample<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 sample standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long?>, SetWindowFieldsWindow)
Calculates the sample standard deviation of the input values.
public static double? StandardDeviationSample<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 sample standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float?>, SetWindowFieldsWindow)
Calculates the sample standard deviation of the input values.
public static float? StandardDeviationSample<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 sample standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
StandardDeviationSample<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, SetWindowFieldsWindow)
Calculates the sample standard deviation of the input values.
public static float StandardDeviationSample<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 sample standard deviation of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
Sum<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, SetWindowFieldsWindow)
Returns the sum of numeric values. $sum ignores non-numeric values.
public static decimal Sum<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 sum of the values.
Type Parameters
TInput
The type of the input documents in the partition.
Sum<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, SetWindowFieldsWindow)
Returns the sum of numeric values. $sum ignores non-numeric values.
public static double Sum<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 sum of the values.
Type Parameters
TInput
The type of the input documents in the partition.
Sum<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, SetWindowFieldsWindow)
Returns the sum of numeric values. $sum ignores non-numeric values.
public static long Sum<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
- long
The sum of the values.
Type Parameters
TInput
The type of the input documents in the partition.
Sum<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, SetWindowFieldsWindow)
Returns the sum of numeric values. $sum ignores non-numeric values.
public static long Sum<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
- long
The sum of the values.
Type Parameters
TInput
The type of the input documents in the partition.
Sum<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal?>, SetWindowFieldsWindow)
Returns the sum of numeric values. $sum ignores non-numeric values.
public static decimal? Sum<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 sum of the values.
Type Parameters
TInput
The type of the input documents in the partition.
Sum<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double?>, SetWindowFieldsWindow)
Returns the sum of numeric values. $sum ignores non-numeric values.
public static double? Sum<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 sum of the values.
Type Parameters
TInput
The type of the input documents in the partition.
Sum<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int?>, SetWindowFieldsWindow)
Returns the sum of numeric values. $sum ignores non-numeric values.
public static long? Sum<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
- long?
The sum of the values.
Type Parameters
TInput
The type of the input documents in the partition.
Sum<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long?>, SetWindowFieldsWindow)
Returns the sum of numeric values. $sum ignores non-numeric values.
public static long? Sum<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
- long?
The sum of the values.
Type Parameters
TInput
The type of the input documents in the partition.
Sum<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float?>, SetWindowFieldsWindow)
Returns the sum of numeric values. $sum ignores non-numeric values.
public static float? Sum<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 sum of the values.
Type Parameters
TInput
The type of the input documents in the partition.
Sum<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, SetWindowFieldsWindow)
Returns the sum of numeric values. $sum ignores non-numeric values.
public static float Sum<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 sum of the values.
Type Parameters
TInput
The type of the input documents in the partition.