Re: [Numpy-discussion] Generating a series of integers

2008-02-05 Thread Sebastian Haase
On Feb 5, 2008 11:33 AM, Francesc Altet <[EMAIL PROTECTED]> wrote: > Hi, > > I need to generate a series of uint8 integers similar to: > > In [37]: numpy.linspace(10, 20, num=25).astype('uint8') > Out[37]: > array([10, 10, 10, 11, 11, 12, 12, 12, 13, 13, 14, 14, 15, 15, 15, 16, >16, 17, 17,

[Numpy-discussion] Generating a series of integers

2008-02-05 Thread Francesc Altet
Hi, I need to generate a series of uint8 integers similar to: In [37]: numpy.linspace(10, 20, num=25).astype('uint8') Out[37]: array([10, 10, 10, 11, 11, 12, 12, 12, 13, 13, 14, 14, 15, 15, 15, 16, 16, 17, 17, 17, 18, 18, 19, 19, 20], dtype=uint8) i.e. create evenly spaced samples in a ra