public class AveragePrecisionCorrelation extends CorrelationIndex
This class is a singleton: methods must be invoked on
Additional methods inherited from
CorrelationIndex make it possible to
compute directly AP correlation bewteen two files, to bound the number of significant digits, or
to reverse the standard association between scores and ranks (by default,
a larger score corresponds to a higher rank, i.e., to a smaller rank index; the largest score gets
A main method is provided for command-line usage.
|Modifier and Type||Field and Description|
The singleton instance of this class.
|Modifier and Type||Method and Description|
Computes AP correlation between two score vectors.
compute, compute, compute, compute, computeDoubles, computeDoubles, computeDoubles, computeDoubles, computeFloats, computeFloats, computeFloats, computeFloats, computeInts, computeInts, computeLongs, computeLongs, loadAsDoubles, parseInputTypes
public static final AveragePrecisionCorrelation INSTANCE
public double compute(double v0, double v1)
Note that this method must be called with some care. More precisely, the two
arguments should be built on-the-fly in the method call, and not stored in variables,
as the first argument array will be
null'd during the execution of this method
to free some memory: if the array is referenced elsewhere the garbage collector will not
be able to collect it.