|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.model.AbstractRuleModel
public abstract class AbstractRuleModel
Base class for (flat) rule models.
Nested Class Summary | |
---|---|
static class |
AbstractRuleModel.DefaultGatherer
|
Constructor Summary | |
---|---|
AbstractRuleModel(java.util.Collection<Rule> rules)
Default constructor. |
Method Summary | |
---|---|
void |
add(Rule rule)
|
Rule |
getDefault()
Returns the default rule. |
Gatherer |
getGatherer()
Returns the gatherer instance for this model. |
Label |
getMajority()
|
java.util.Collection<Rule> |
getRules()
|
boolean |
hasDefault()
Checks if the discovered rule set has a default rule (rule with no terms). |
void |
remove(Rule rule)
|
void |
setMajority(Label majority)
|
int |
size()
Returns the number of rules of the model. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.myra.datamining.Model |
---|
classify |
Constructor Detail |
---|
public AbstractRuleModel(java.util.Collection<Rule> rules)
rules
- the collection of discovered rules.Method Detail |
---|
public void add(Rule rule)
public void remove(Rule rule)
public java.util.Collection<Rule> getRules()
public Label getMajority()
public void setMajority(Label majority)
majority
- the majority to setpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean hasDefault()
true
if the discovered rule set contains a
default rule; false
otherwise.public Rule getDefault()
public int size()
public Gatherer getGatherer()
Model
getGatherer
in interface Model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |