airbornegeo.normalize_values#
- normalize_values(x, low=0, high=1, quantiles=(0, 1))[source]#
Normalize a list of numbers by scaling the min and max values to be between low and high. The min and max values can changed to be any quatile of the data.
- Parameters:
x (
ndarray[tuple[Any,...],dtype[TypeVar(_ScalarT, bound=generic)]]) â numbers to normalizelow (
float) â lower value for normalization, by default 0high (
float) â higher value for normalization, by default 1quantiles (
tuple[float,float]) â quantiles to use for min and max values, by default (0, 1)
- Returns:
a normalized list of numbers
- Return type:
ndarray[tuple[Any,...],dtype[TypeVar(_ScalarT, bound=generic)]]