Method MinMaxScaler
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
partitionISetWindowFieldsPartition<TInput>The partition.
selectorFunc<TInput, decimal>The selector that selects a value from the input document.
mindoubleThe minimum value of the output range.
maxdoubleThe maximum value of the output range.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- decimal
The normalized value.
Type Parameters
TInputThe 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
partitionISetWindowFieldsPartition<TInput>The partition.
selectorFunc<TInput, decimal?>The selector that selects a value from the input document.
mindoubleThe minimum value of the output range.
maxdoubleThe maximum value of the output range.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- decimal?
The normalized value.
Type Parameters
TInputThe 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
partitionISetWindowFieldsPartition<TInput>The partition.
selectorFunc<TInput, double>The selector that selects a value from the input document.
mindoubleThe minimum value of the output range.
maxdoubleThe maximum value of the output range.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- double
The normalized value.
Type Parameters
TInputThe 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
partitionISetWindowFieldsPartition<TInput>The partition.
selectorFunc<TInput, double?>The selector that selects a value from the input document.
mindoubleThe minimum value of the output range.
maxdoubleThe maximum value of the output range.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- double?
The normalized value.
Type Parameters
TInputThe 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
partitionISetWindowFieldsPartition<TInput>The partition.
selectorFunc<TInput, float>The selector that selects a value from the input document.
mindoubleThe minimum value of the output range.
maxdoubleThe maximum value of the output range.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- float
The normalized value.
Type Parameters
TInputThe 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
partitionISetWindowFieldsPartition<TInput>The partition.
selectorFunc<TInput, float?>The selector that selects a value from the input document.
mindoubleThe minimum value of the output range.
maxdoubleThe maximum value of the output range.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- float?
The normalized value.
Type Parameters
TInputThe 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
partitionISetWindowFieldsPartition<TInput>The partition.
selectorFunc<TInput, int>The selector that selects a value from the input document.
mindoubleThe minimum value of the output range.
maxdoubleThe maximum value of the output range.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- double
The normalized value.
Type Parameters
TInputThe 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
partitionISetWindowFieldsPartition<TInput>The partition.
selectorFunc<TInput, int?>The selector that selects a value from the input document.
mindoubleThe minimum value of the output range.
maxdoubleThe maximum value of the output range.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- double?
The normalized value.
Type Parameters
TInputThe 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
partitionISetWindowFieldsPartition<TInput>The partition.
selectorFunc<TInput, long>The selector that selects a value from the input document.
mindoubleThe minimum value of the output range.
maxdoubleThe maximum value of the output range.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- double
The normalized value.
Type Parameters
TInputThe 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
partitionISetWindowFieldsPartition<TInput>The partition.
selectorFunc<TInput, long?>The selector that selects a value from the input document.
mindoubleThe minimum value of the output range.
maxdoubleThe maximum value of the output range.
windowSetWindowFieldsWindowThe window boundaries.
Returns
- double?
The normalized value.
Type Parameters
TInputThe type of the input documents in the partition.