viper.comparison
Class ObjectInformation

java.lang.Object
  extended byviper.comparison.ObjectInformation
All Implemented Interfaces:
Evaluation.Information

public class ObjectInformation
extends java.lang.Object
implements Evaluation.Information

Stores precision/recall information for object evaluation.

Author:
davidm

Constructor Summary
ObjectInformation()
          Creates a new instance of ObjectInformation
 
Method Summary
 void add(Evaluation.Information other)
          Sums another information to this one, usually from two different CompMatrices.
 java.util.Map getDatasets(java.lang.String name)
          Get a map of chart titles (actually, distance objects) to Datasets.
 java.lang.String getLayout()
          Gets the layout for the toString format.
 boolean hasInformation()
          Indicates if anything was found.
 void setPrecisionRecall(java.lang.String desc, viper.comparison.PrecisionRecall pr)
          Sets the precision and recall information assicated with this evaluation result object.
 java.lang.String toString()
          Gets the information about the evaluation.
 java.lang.String toVerbose()
          Get output suitable for .out files; may include new lines.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectInformation

public ObjectInformation()
Creates a new instance of ObjectInformation

Method Detail

add

public void add(Evaluation.Information other)
Sums another information to this one, usually from two different CompMatrices.

Specified by:
add in interface Evaluation.Information
Parameters:
other - the information to add to this

getLayout

public java.lang.String getLayout()
Gets the layout for the toString format.

Specified by:
getLayout in interface Evaluation.Information
Returns:
the layout of the raw file

hasInformation

public boolean hasInformation()
Indicates if anything was found. Useful for avoiding 0/0 errors.

Specified by:
hasInformation in interface Evaluation.Information
Returns:
if this contains any useful information.

toVerbose

public java.lang.String toVerbose()
Get output suitable for .out files; may include new lines.

Specified by:
toVerbose in interface Evaluation.Information
Returns:
the verbose string

toString

public java.lang.String toString()
Gets the information about the evaluation.

Specified by:
toString in interface Evaluation.Information
Returns:
all the attribute distances and the computed total

setPrecisionRecall

public void setPrecisionRecall(java.lang.String desc,
                               viper.comparison.PrecisionRecall pr)
Sets the precision and recall information assicated with this evaluation result object.

Parameters:
desc - the descriptor
pr - the pr for the descriptor

getDatasets

public java.util.Map getDatasets(java.lang.String name)
Get a map of chart titles (actually, distance objects) to Datasets.

Specified by:
getDatasets in interface Evaluation.Information
Parameters:
name - Associate the series in each dataset with this name.
Returns:
an empty map