[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.

thanks

- dharhas

>>> "Dharhas Pothina" <Dharhas.Pothina@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@scipy.org 
http://mail.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-User mailing list