RePrec::Tools - Collection of tools for RePrec libraries



NAME

RePrec::Tools - Collection of tools for RePrec(3) libraries


SYNOPSIS

  use RePrec::Tools qw(gnuplot system choose fac);


DESCRIPTION

Functions shared between the various RePrec(3) libraries.


FUNCTIONS

gnuplot($rpdata, $average, $gnuplot)
plot curve with gnuplot(1). $rpdata and $average are the data for the curves to be displayed. $gnuplot is a hash reference where configuration options for gnuplot can be set. The default settings are:
  style  => 'lines'
  title  => 'Recall-Precision'
  ylabel => 'Precision'
  xlabel => 'Recall'
  output => '/tmp/RP'
  binary => 'gnuplot'

The output parameter gives a prefix name used for files created during the plotting. By default the following files are created: /tmp/RP.dat (holds the data for the curves), /tmp/RP.average.dat (holds the average precision), and /tmp/RP.gp (holds the gnuplot config file).

The binary parameter gives the name of the gnuplot binary. The terminal parameter selects the gnuplot terminal to use (for example: postscript eps enhanced 22).

write_rpdata($file, $rpdata, [$average]);
Write the recall precision data to file(s).

$rp->system(@args)
forks of a process and executes therein the command given by @args (list of executable's name and arguments). Displays some proper return status interpretations.

$bc = choose($n, $k)
computes the binomial coefficient for $n over $k.

$fac = fac($n)
computes faculty of $n.


BUGS

Yes. Please let me know!


SEE ALSO

RePrec::Average(3), RePrec(3), perl(1).


AUTHOR

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

 RePrec::Tools - Collection of tools for RePrec libraries