I have a base
array of equally spaced values [0, 1, ..., 511]
. I need to create a target
array over [0 to 511]
that consists of approximately 4096 values. It must also contain all the values 0, 1, 2, ...
that are in base
.
base = [0, 1, 2, 3, ..., 511]
target = [0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1, ..., 511]
I have:
base = np.linspace(0, 511, 512)
target = np.linspace(0, 511, 4096)
Unfortunately, target
seems to be incorrect:
[0;0.124786;0.249573;0.374359;0.499145;0.623932;0.748718;0.873504;0.998291;...]
I need it to contain the numbers from base
.