com.wcohen.secondstring.expt
Class MatchExpt

java.lang.Object
  |
  +--com.wcohen.secondstring.expt.MatchExpt
All Implemented Interfaces:
java.io.Serializable

public class MatchExpt
extends java.lang.Object
implements java.io.Serializable

Perform a matching experiment using a data file, distance function and blocker.

See Also:
Serialized Form

Field Summary
static java.lang.String BLOCKER_PACKAGE
           
static java.lang.String DISTANCE_PACKAGE
           
 
Constructor Summary
MatchExpt(MatchData data, StringDistance dist)
           
MatchExpt(MatchData data, StringDistance dist, Blocker blocker)
           
 
Method Summary
 java.lang.Double averagePrecision()
          non-interpolated average precision
 java.lang.Double blockerRecall()
          performance of the blocker
 void displayResults(boolean showMismatches, java.io.PrintStream out)
          Show results in a very simple format.
 void graphPrecisionRecall(java.io.PrintStream out)
          Graph interpolated precision vs recall
 double[] interpolated11PointPrecision()
          Return an array of interpolated precision at various different recall levels.
static double[] interpolated11PointRecallLevels()
          Return recall levels associated with the precision levels returned by interpolated11PointPrecision.
static void main(java.lang.String[] argv)
          Command-line interface.
 java.lang.Double maxF1()
          max F1 for any threshold
 java.lang.Double pairsPerSecond()
          Return total time to process data, divided by the number of pairs
 java.lang.Double time()
          Return total time to process data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLOCKER_PACKAGE

public static final java.lang.String BLOCKER_PACKAGE
See Also:
Constant Field Values

DISTANCE_PACKAGE

public static final java.lang.String DISTANCE_PACKAGE
See Also:
Constant Field Values
Constructor Detail

MatchExpt

public MatchExpt(MatchData data,
                 StringDistance dist,
                 Blocker blocker)

MatchExpt

public MatchExpt(MatchData data,
                 StringDistance dist)
Method Detail

time

public java.lang.Double time()
Return total time to process data.


pairsPerSecond

public java.lang.Double pairsPerSecond()
Return total time to process data, divided by the number of pairs


averagePrecision

public java.lang.Double averagePrecision()
non-interpolated average precision


maxF1

public java.lang.Double maxF1()
max F1 for any threshold


blockerRecall

public java.lang.Double blockerRecall()
performance of the blocker


interpolated11PointRecallLevels

public static double[] interpolated11PointRecallLevels()
Return recall levels associated with the precision levels returned by interpolated11PointPrecision.


interpolated11PointPrecision

public double[] interpolated11PointPrecision()
Return an array of interpolated precision at various different recall levels.


graphPrecisionRecall

public void graphPrecisionRecall(java.io.PrintStream out)
                          throws java.io.IOException
Graph interpolated precision vs recall

java.io.IOException

displayResults

public void displayResults(boolean showMismatches,
                           java.io.PrintStream out)
                    throws java.io.IOException
Show results in a very simple format.

java.io.IOException

main

public static void main(java.lang.String[] argv)
Command-line interface.