/ Published in: MatLab
My implementation corresponding to Tom Fawcett's algorithm 3 in "roc graphs: notes and practical considerations for researchers, " 2004. Please see blog post for explanations and leave comments there.
URL: http://www.myoutsourcedbrain.com/2008/11/receiver-operating-characteristic-roc.html