remap_values
- compas.utilities.remap_values(values, target_min=0.0, target_max=1.0, original_min=None, original_max=None)[source]
Maps a list of numbers from one domain to another.
- Parameters
values (sequence[int | float]) – The value to remap
target_min (int | float, optional) – The minimun value of the target domain.
target_max (int | float, optional) – The maximum value of the target domain.
original_min (int | float, optional) – The minimun value of the original domain, other than the actual minimum value.
original_max (int | float, optional) – The maximum value of the original domain, other than the actual maximum value.
- Returns
list[float] – The remaped list of values.