Table of Contents

Method CovariancePopulation

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.dll

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 SetWindowFieldsWindow

The 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, 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 SetWindowFieldsWindow

The 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 SetWindowFieldsWindow

The 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, 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 SetWindowFieldsWindow

The 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 SetWindowFieldsWindow

The 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 SetWindowFieldsWindow

The 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 SetWindowFieldsWindow

The 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 SetWindowFieldsWindow

The 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 SetWindowFieldsWindow

The 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 SetWindowFieldsWindow

The window boundaries.

Returns

float?

The maximum of the selected values.

Type Parameters

TInput

The type of the input documents in the partition.