[SciPy-User] multivariate empirical distribution function, avoid double loop ?

josef.pktd at gmail.com josef.pktd at gmail.com
Wed Aug 24 10:23:56 EDT 2011


Does anyone know whether there is an algorithm that avoids the double
loop to get a multivariate empirical distribution function?

for point in data:
     count how many points in data are smaller or equal to point

with 1d data it's just argsort(argsort(data))

double loop version with some test cases is attached.

I didn't see a way that sorting would help.

Thanks,

Josef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try_mvecdf.py
Type: text/x-python
Size: 1022 bytes
Desc: not available
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20110824/c8425ae9/attachment.py>


More information about the SciPy-User mailing list