If I have a numpy array of length n that looks like this
[2.456970453262329, 2.3738574981689453,... 1.28790283203125,]
and I want to "stretch" is so that it now has length m (m>n) but still keeps the same general distribution of values, how could I do that? Is there a numpy module for such a transformation?
e.g. for n=3 and m=5
[1, 2, 3] --> [1, 1.5, 2, 2.5, 3]