
RePrec - compute average of recall-precision curves

require RePrec::Average; $av = RePrec::Average->new(@reprecs); $av->calculate; $av->gnuplot;

Given some recall-precision RePrec(3) oobjects the average precision over same recall points is calculated (macro measure).

$av = RePrec::Average->new(@reprecs)
constructor. @reprecs is an array of RePrec(3) objects.
($graph, $average) = $rp->calculate([$points])
calculates precision values for $points (see respective method in RePrec(3)). As a result you get a list of (recall, average precision) pairs (array of array references with two elements each) and the averaged average precision (over all recall points computed).
$rp->gnuplot([$gnuplot])
plot curve with gnuplot(1). $gnuplot is a hash reference where parameters for gnuplot can be set.
$rp->write_rpdata($file, [$average]);
Write the recall-precision data to file(s). Writes data for average precision if $average is true.

Yes. Please let me know!

gnuplot(1), perl(1).

Norbert Gövert <goevert@ls6.cs.uni-dortmund.de>