net.sf.myra.cantminer.pittsburgh
Class CandidateRuleList
java.lang.Object
net.sf.myra.datamining.model.AbstractRuleModel
net.sf.myra.datamining.model.RuleList
net.sf.myra.cantminer.pittsburgh.CandidateRuleList
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CandidateRuleList>, net.sf.myra.datamining.Model
- Direct Known Subclasses:
- UnorderedRuleList
public class CandidateRuleList
- extends net.sf.myra.datamining.model.RuleList
- implements java.lang.Comparable<CandidateRuleList>
A candidate rule list reprents a rule list created during the search for the
best rule list.
- Version:
- $Revision$ $Date:: $
- Author:
- Fernando Esteban Barril Otero
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class net.sf.myra.datamining.model.AbstractRuleModel |
net.sf.myra.datamining.model.AbstractRuleModel.DefaultGatherer |
Method Summary |
int |
compareTo(CandidateRuleList o)
|
boolean |
equals(java.lang.Object o)
|
int |
getIteration()
Returns the iteration in which this candidate rule list was created. |
double |
getQuality()
Returns the quality of this rule list. |
void |
setIteration(int iteration)
Sets the iteration in which this candidate rule list was created. |
void |
setQuality(double quality)
Sets the quality of this rule list. |
Methods inherited from class net.sf.myra.datamining.model.RuleList |
classify, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CandidateRuleList
public CandidateRuleList()
getIteration
public int getIteration()
- Returns the iteration in which this candidate rule list was created. If
the value has not been set, returns
-1
.
- Returns:
- the iteration in which this candidate rule list was created.
setIteration
public void setIteration(int iteration)
- Sets the iteration in which this candidate rule list was created.
- Parameters:
iteration
- the value to set.
getQuality
public double getQuality()
- Returns the quality of this rule list.
- Returns:
- the quality of this rule list.
setQuality
public void setQuality(double quality)
- Sets the quality of this rule list.
- Parameters:
quality
- the quality to set.
compareTo
public int compareTo(CandidateRuleList o)
- Specified by:
compareTo
in interface java.lang.Comparable<CandidateRuleList>
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
Copyright © 2013. All Rights Reserved.