Method CovariancePopulation
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
CovariancePopulation(ISetWindowFieldsPartition, 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
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
SetWindowFieldsWindow
The window boundaries.
Returns
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation(ISetWindowFieldsPartition, 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
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
SetWindowFieldsWindow
The window boundaries.
Returns
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation(ISetWindowFieldsPartition, 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
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
SetWindowFieldsWindow
The window boundaries.
Returns
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation(ISetWindowFieldsPartition, 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
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
SetWindowFieldsWindow
The window boundaries.
Returns
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation(ISetWindowFieldsPartition, 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
The partition.
The selector that defines the first expression.
The selector that defines the second expression.
window
SetWindowFieldsWindow
The window boundaries.
Returns
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation(ISetWindowFieldsPartition, 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
The partition.
The selector that defines the first expression.
The selector that defines the second expression.
window
SetWindowFieldsWindow
The window boundaries.
Returns
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation(ISetWindowFieldsPartition, 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
The partition.
The selector that defines the first expression.
The selector that defines the second expression.
window
SetWindowFieldsWindow
The window boundaries.
Returns
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation(ISetWindowFieldsPartition, 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
The partition.
The selector that defines the first expression.
The selector that defines the second expression.
window
SetWindowFieldsWindow
The window boundaries.
Returns
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation(ISetWindowFieldsPartition, 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
The partition.
The selector that defines the first expression.
The selector that defines the second expression.
window
SetWindowFieldsWindow
The window boundaries.
Returns
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
CovariancePopulation(ISetWindowFieldsPartition, 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
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
SetWindowFieldsWindow
The window boundaries.
Returns
The maximum of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.