Table of Contents

Method MinMaxScaler

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

MinMaxScaler<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, double, double, SetWindowFieldsWindow)

Normalizes the numeric value to the output range [min, max] using the minimum and maximum values in the window.

public static decimal MinMaxScaler<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal> selector, double min = 0, double max = 1, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, decimal>

The selector that selects a value from the input document.

min double

The minimum value of the output range.

max double

The maximum value of the output range.

window SetWindowFieldsWindow

The window boundaries.

Returns

decimal

The normalized value.

Type Parameters

TInput

The type of the input documents in the partition.

MinMaxScaler<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal?>, double, double, SetWindowFieldsWindow)

Normalizes the numeric value to the output range [min, max] using the minimum and maximum values in the window.

public static decimal? MinMaxScaler<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal?> selector, double min = 0, double max = 1, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, decimal?>

The selector that selects a value from the input document.

min double

The minimum value of the output range.

max double

The maximum value of the output range.

window SetWindowFieldsWindow

The window boundaries.

Returns

decimal?

The normalized value.

Type Parameters

TInput

The type of the input documents in the partition.

MinMaxScaler<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, double, double, SetWindowFieldsWindow)

Normalizes the numeric value to the output range [min, max] using the minimum and maximum values in the window.

public static double MinMaxScaler<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double> selector, double min = 0, double max = 1, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, double>

The selector that selects a value from the input document.

min double

The minimum value of the output range.

max double

The maximum value of the output range.

window SetWindowFieldsWindow

The window boundaries.

Returns

double

The normalized value.

Type Parameters

TInput

The type of the input documents in the partition.

MinMaxScaler<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double?>, double, double, SetWindowFieldsWindow)

Normalizes the numeric value to the output range [min, max] using the minimum and maximum values in the window.

public static double? MinMaxScaler<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double?> selector, double min = 0, double max = 1, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, double?>

The selector that selects a value from the input document.

min double

The minimum value of the output range.

max double

The maximum value of the output range.

window SetWindowFieldsWindow

The window boundaries.

Returns

double?

The normalized value.

Type Parameters

TInput

The type of the input documents in the partition.

MinMaxScaler<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, double, double, SetWindowFieldsWindow)

Normalizes the numeric value to the output range [min, max] using the minimum and maximum values in the window.

public static float MinMaxScaler<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float> selector, double min = 0, double max = 1, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, float>

The selector that selects a value from the input document.

min double

The minimum value of the output range.

max double

The maximum value of the output range.

window SetWindowFieldsWindow

The window boundaries.

Returns

float

The normalized value.

Type Parameters

TInput

The type of the input documents in the partition.

MinMaxScaler<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float?>, double, double, SetWindowFieldsWindow)

Normalizes the numeric value to the output range [min, max] using the minimum and maximum values in the window.

public static float? MinMaxScaler<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float?> selector, double min = 0, double max = 1, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, float?>

The selector that selects a value from the input document.

min double

The minimum value of the output range.

max double

The maximum value of the output range.

window SetWindowFieldsWindow

The window boundaries.

Returns

float?

The normalized value.

Type Parameters

TInput

The type of the input documents in the partition.

MinMaxScaler<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, double, double, SetWindowFieldsWindow)

Normalizes the numeric value to the output range [min, max] using the minimum and maximum values in the window.

public static double MinMaxScaler<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int> selector, double min = 0, double max = 1, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, int>

The selector that selects a value from the input document.

min double

The minimum value of the output range.

max double

The maximum value of the output range.

window SetWindowFieldsWindow

The window boundaries.

Returns

double

The normalized value.

Type Parameters

TInput

The type of the input documents in the partition.

MinMaxScaler<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int?>, double, double, SetWindowFieldsWindow)

Normalizes the numeric value to the output range [min, max] using the minimum and maximum values in the window.

public static double? MinMaxScaler<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int?> selector, double min = 0, double max = 1, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, int?>

The selector that selects a value from the input document.

min double

The minimum value of the output range.

max double

The maximum value of the output range.

window SetWindowFieldsWindow

The window boundaries.

Returns

double?

The normalized value.

Type Parameters

TInput

The type of the input documents in the partition.

MinMaxScaler<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, double, double, SetWindowFieldsWindow)

Normalizes the numeric value to the output range [min, max] using the minimum and maximum values in the window.

public static double MinMaxScaler<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long> selector, double min = 0, double max = 1, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, long>

The selector that selects a value from the input document.

min double

The minimum value of the output range.

max double

The maximum value of the output range.

window SetWindowFieldsWindow

The window boundaries.

Returns

double

The normalized value.

Type Parameters

TInput

The type of the input documents in the partition.

MinMaxScaler<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long?>, double, double, SetWindowFieldsWindow)

Normalizes the numeric value to the output range [min, max] using the minimum and maximum values in the window.

public static double? MinMaxScaler<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long?> selector, double min = 0, double max = 1, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, long?>

The selector that selects a value from the input document.

min double

The minimum value of the output range.

max double

The maximum value of the output range.

window SetWindowFieldsWindow

The window boundaries.

Returns

double?

The normalized value.

Type Parameters

TInput

The type of the input documents in the partition.