Hi,

This is more a coding/algorithm question than a straight matplotlib question.

I have x and y data based on a parameter k. x and y have noise, so that even 
though k increases monotonically neither x nor y are guaranteed to do so. x can 
have duplicates.

I need to find the area under the curve x,y  (You may have guessed, x is false 
alarms, y is hit rate, and this is the ROC)

What I'm doing is rather cumbersome. I first sort x (shuffling y accordingly)
Then I crawl through x discarding the duplicates.

Only then does interp give me reasonable values which I then use for finding 
the 
area under the curve.

Is there a function in matplotlib that handles cases like this?

Thanks!
-K

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to