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

Dharhas Pothina Dharhas.Pothina at twdb.state.tx.us
Tue Sep 14 15:15:58 EDT 2010


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

thanks

- dharhas

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

> 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
SciPy-User at scipy.org 
http://mail.scipy.org/mailman/listinfo/scipy-user




More information about the SciPy-User mailing list