I tried searching, but due to the nature of my question, I was unable to find something satisfactory.
My problem is the following: I am trying to map numbers ranging fro
An answer using Numpy from Python:
import numpy as np # [A, B]: old interval # [a, b] new interval new_value = np.interp(old_value, [A, B], [a, b]) print(new_value)