edu.harvard.seas.iis.abilities.classify
Class InstanceFilter

java.lang.Object
  extended by edu.harvard.seas.iis.abilities.classify.InstanceFilter

public abstract class InstanceFilter
extends Object

Can be used to obtain a subset of instances that meet specific criteria

Author:
kgajos

Constructor Summary
InstanceFilter()
           
 
Method Summary
abstract  boolean evaluateInstance(weka.core.Instance instance, weka.core.Instances theCompleteDataSet)
          The method for subclasses to implement
 weka.core.Instances filter(weka.core.Instances data)
          Returns a new set of Instances that only contain a subset of the data that meet the criteria specified in the evaluateInstance() method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceFilter

public InstanceFilter()
Method Detail

evaluateInstance

public abstract boolean evaluateInstance(weka.core.Instance instance,
                                         weka.core.Instances theCompleteDataSet)
The method for subclasses to implement

Returns:
true if the instance should be kept, false otherwise

filter

public weka.core.Instances filter(weka.core.Instances data)
Returns a new set of Instances that only contain a subset of the data that meet the criteria specified in the evaluateInstance() method

Parameters:
data -
Returns: