linlin¶
- emlib.numpytools.linlin(xs, x0, x1, y0, y1)[source]¶
Map xs from range x0-x1 to y0-y1
- Parameters:
xs (
ndarray
) – the array of values between x0 and x1x0 (
float
) – the min. value of xsx1 (
float
) – the max. value of xsy0 (
float
) – the min. value of the remapped arrayy1 (
float
) – the max. value of the remapped array
- Return type:
ndarray
- Returns:
the remapped values