[Numpy-discussion] Efficient scaling of array
Johannes Bauer
dfnsonfsduifb@gmx...
Mon May 4 10:40:30 CDT 2009
Hello list,
is there a possibility to scale an array by interpolation,
automatically? For illustration a 1D-example would be an array of size
5, which is scaled to size 3:
before: [ 1, 2, 3, 4, 5 ]
1/1 2/3
1/3 1 1/3
2/3 1
after : [ 2.33, 5, 7.66 ]
The same thing should be possible in nD, with the obvious analogy. Is
there such a function in numpy?
Kind regards,
Johannes
More information about the Numpy-discussion
mailing list