[SciPy-User] Replace duplicates in a monotonically increasing array with linearly interpolated values.

Dharhas Pothina Dharhas.Pothina@twdb.state.tx...
Tue Sep 14 14:15:58 CDT 2010

Looks like I have numpy 1.3 and this is available in 1.4 onwards. Will try upgrading and try again.


- dharhas

>>> "Dharhas Pothina" <Dharhas.Pothina@twdb.state.tx.us> 9/14/2010 2:03 PM >>>

> Hmm, something like this should do the trick (not tested):
> xUnique, xUniqueIndices = scipy.unique(x, return_index=True)

Neither numpy.unique or scipy.unique seem to have a return_index keyword arg.

- dharhas

SciPy-User mailing list

More information about the SciPy-User mailing list