airbornegeo.normalize_values

Contents

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 normalize

  • low (float) – lower value for normalization, by default 0

  • high (float) – higher value for normalization, by default 1

  • quantiles (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)]]