I have generated a number z from one area (x, y) and want to assign z to another area (p, q).
This can be achieved by linear interpolation as follows:
https://www.mathworks.com/matlabcentral/answers/379380-assignment-from-one-all-all-number-in- one-area-to another area
The relationship I want to achieve is something like this:
01, 02, 03, 04, 05, 06, 07, 08, 09, 10
25, 25, 25, 26, 26, 26, 27, 27, 27, XX
Where x, y is the range 1-10, p, q is 25-27
If z = 7, the & # 39; equivalent would be & # 39; in the second range about 27, but this would require that one of the intervals be rounded up or down so that it is not completely accurate.
My question is, does the above relationship be achieved through linear interpolation, and if so, preserves & # 39; the relationship the randomness?
For example, if I had rolled a dice, the second interpolated value would be the same "cube", so to speak, but in the context of a cube with more sides?