com.rapidminer.operator.learner.meta
Class BayBoostStream.BatchFilterCondition

java.lang.Object
  extended by com.rapidminer.operator.learner.meta.BayBoostStream.BatchFilterCondition
All Implemented Interfaces:
Condition, java.io.Serializable
Enclosing class:
BayBoostStream

public static class BayBoostStream.BatchFilterCondition
extends java.lang.Object
implements Condition

Class that filters an ExampleSet by the value of a special attribute. The constructor is provided with the attribute and the selected value. Neither this value nor the values of the attribute in the data are supposed to change. Please note, that the batch number is compared with greater or equal, which is comfortable for the case of merging a sequence of batches.

See Also:
Serialized Form

Constructor Summary
BayBoostStream.BatchFilterCondition(Attribute attribute, int batchNumber)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BayBoostStream.BatchFilterCondition

public BayBoostStream.BatchFilterCondition(Attribute attribute,
                                           int batchNumber)
Method Detail

conditionOk

public boolean conditionOk(Example example)
Description copied from interface: Condition
Should return true if the given example does fulfill this condition.

Specified by:
conditionOk in interface Condition

duplicate

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

Since the condition cannot be altered after creation we can just return the condition object itself.

Specified by:
duplicate in interface Condition


Copyright © 2001-2009 by Rapid-I