Table of Contents

Method CovarianceSample

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

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 SetWindowFieldsWindow

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

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

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

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

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

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

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

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

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

The window boundaries.

Returns

float?

The maximum of the selected values.

Type Parameters

TInput

The type of the input documents in the partition.