net.sf.myra.datamining.model
Class RuleSet

java.lang.Object
  extended by net.sf.myra.datamining.model.AbstractRuleModel
      extended by net.sf.myra.datamining.model.RuleSet
All Implemented Interfaces:
java.io.Serializable, Model

public class RuleSet
extends AbstractRuleModel

This class represents a rule set model.

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero
See Also:
Serialized Form

Nested Class Summary
static class RuleSet.ConflictResolutionStrategy
           
 
Nested classes/interfaces inherited from class net.sf.myra.datamining.model.AbstractRuleModel
AbstractRuleModel.DefaultGatherer
 
Constructor Summary
RuleSet()
           
RuleSet(RuleSet.ConflictResolutionStrategy strategy)
           
 
Method Summary
 Label classify(Instance instance)
          Classifies the secified instance.
 java.util.Set<Rule> getRules()
           
 
Methods inherited from class net.sf.myra.datamining.model.AbstractRuleModel
add, getDefault, getGatherer, getMajority, hasDefault, remove, setMajority, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleSet

public RuleSet()

RuleSet

public RuleSet(RuleSet.ConflictResolutionStrategy strategy)
Method Detail

getRules

public java.util.Set<Rule> getRules()
Overrides:
getRules in class AbstractRuleModel

classify

public Label classify(Instance instance)
Description copied from interface: Model
Classifies the secified instance.

Parameters:
instance - the instance to be classified.
Returns:
the class predicted by this model.


Copyright © 2013. All Rights Reserved.