Table of Contents

Method StandardDeviationSample

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

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 SetWindowFieldsWindow

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

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

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

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

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

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

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

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

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

The window boundaries.

Returns

float?

The sample standard deviation of the selected values.

Type Parameters

TInput

The type of the input documents in the partition.