Options.domain_to_normalised
- Options.domain_to_normalised(values: ndarray) ndarray [source]
Maps from discrete values to a range [0, 1] by attributing an equal share of the range to each of the possible options of the domain.
- Parameters:
values (np.ndarray) – The domain values to map to [0, 1].
- Returns:
np.ndarray – The mapped/normalised values in [0, 1].