com.rapidminer.example.set
Interface Condition

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AcceptAllCondition, AttributeValueFilter, AttributeValueFilterSingleCondition, BayBoostStream.BatchFilterCondition, CorrectPredictionCondition, MissingAttributesCondition, MissingLabelsCondition, NoMissingAttributesCondition, NoMissingAttributeValueCondition, NoMissingLabelsCondition, WrongPredictionCondition

public interface Condition
extends java.io.Serializable

Objects implementing this interface are used by ConditionedExampleSets, a special sub class of ExampleSet that skips all examples that do not fulfill this condition. In order for the ConditionedExampleSet.createCondition(String, ExampleSet, String) factory method to be able to create instances of an implementation of Condition, it must implement a two argument constructor taking an ExampleSet and a parameter String. The meaning of the parameter string is dependent on the implementation and may even be ignored, although it would be nice to print a warning.

Author:
Ingo Mierswa, Simon Fischer

Method Summary
 boolean conditionOk(Example example)
          Should return true if the given example does fulfill this condition.
 Condition duplicate()
          Deprecated. Conditions should not be able to be changed dynamically and hence there is no need for a copy
 

Method Detail

conditionOk

boolean conditionOk(Example example)
Should return true if the given example does fulfill this condition.


duplicate

@Deprecated
Condition duplicate()
Deprecated. Conditions should not be able to be changed dynamically and hence there is no need for a copy

Returns a duplicate of this condition. Subclasses which cannot dynamically changed can also return the same object.



Copyright © 2001-2009 by Rapid-I