adams.data.weka.evaluator
Class AbstractCrossvalidatedInstanceEvaluator.EvaluationContainer

java.lang.Object
  extended by adams.data.weka.evaluator.AbstractCrossvalidatedInstanceEvaluator.EvaluationContainer
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
IntervalEstimatorBased.SortedInterval
Enclosing class:
AbstractCrossvalidatedInstanceEvaluator<T extends AbstractCrossvalidatedInstanceEvaluator.EvaluationContainer>

public abstract static class AbstractCrossvalidatedInstanceEvaluator.EvaluationContainer
extends Object
implements Comparable

Container for storing the evaluation results.

Version:
$Revision: 4584 $
Author:
fracpete (fracpete at waikato dot ac dot nz)

Field Summary
protected  weka.core.Instance m_Instance
          the Instance the container is for.
 
Constructor Summary
AbstractCrossvalidatedInstanceEvaluator.EvaluationContainer(weka.core.Instance inst)
          Initializes the container.
 
Method Summary
abstract  int compareTo(Object o)
          Compares this object with the specified object for order.
 boolean equals(Object o)
          Returns whether the two objects are the same.
 weka.core.Instance getInstance()
          Returns the stored Instance.
abstract  String toString()
          Returns a string representation of the stored data.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_Instance

protected weka.core.Instance m_Instance
the Instance the container is for.

Constructor Detail

AbstractCrossvalidatedInstanceEvaluator.EvaluationContainer

public AbstractCrossvalidatedInstanceEvaluator.EvaluationContainer(weka.core.Instance inst)
Initializes the container.

Parameters:
inst - the Instance the container is for
Method Detail

getInstance

public weka.core.Instance getInstance()
Returns the stored Instance.

Returns:
the instance

compareTo

public abstract int compareTo(Object o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Only compares the commandlines of the two objects.

Specified by:
compareTo in interface Comparable
Parameters:
o - the object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
ClassCastException - if the specified object's type prevents it from being compared to this object.

equals

public boolean equals(Object o)
Returns whether the two objects are the same.

Overrides:
equals in class Object
Parameters:
o - the object to be compared
Returns:
true if the object is the same as this one

toString

public abstract String toString()
Returns a string representation of the stored data.

Overrides:
toString in class Object
Returns:
the represention


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.