I want to create an array in python with a fixed spacing between the values 2n and 2n+1, and another different spacing between the values 2n+1 and 2n+2.
I want to create an array like the following one, specifying just the initial point, the final point and the two different spacings that I want to use:
x = [0 0.25 0.75 1 1.5 1.75]
In this case those values would be 0 and 2 and (0.25,0.5) for the spacing.
Is it possible to do this using a predefined function?
I haven't found this functionality in the numpy package.