Re: [Numpy-discussion] Vectorization of variant of piecewise or interpolation function

2017-10-16 Thread Seth Ghandi
[ 0], >[ 5], >[-1], >[-1]]) > > > Note the call to concatenate. Depending on how exactly you want your bins to > align, you might need to concatenate at the end or at the start of the > `values` array. > > Hope this helps! > > Juan. >

[Numpy-discussion] Vectorization of variant of piecewise or interpolation function

2017-10-15 Thread Seth Ghandi
Hi everybody, I am new to newpy and am trying to define a variant of piecewise or zero holder interpolation function, say ZeroOrderInterpolation(t,a), where t is an 1D array of size, say p, consisting of real numbers, and a is a 2D array of size, say nxm, with first column consisting of increas