public class FeatureRank extends java.lang.Object implements java.lang.Comparable<FeatureRank>
| Constructor and Description |
|---|
FeatureRank(java.lang.String theName)
Construct the feature ranking.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWeight(double theWeight)
Add weight to the total importance of this feature.
|
int |
compareTo(FeatureRank o) |
double |
getImportancePercent() |
java.lang.String |
getName() |
double |
getTotalWeight() |
void |
setImportancePercent(double importancePercent)
Set the importance percent.
|
void |
setTotalWeight(double totalWeight)
Set the total weight.
|
java.lang.String |
toString() |
public FeatureRank(java.lang.String theName)
theName - The name of the feature.public java.lang.String getName()
public void addWeight(double theWeight)
theWeight - The weight to add.public double getTotalWeight()
public void setTotalWeight(double totalWeight)
totalWeight - The total weight.public double getImportancePercent()
public void setImportancePercent(double importancePercent)
importancePercent - The importance percent.public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(FeatureRank o)
compareTo in interface java.lang.Comparable<FeatureRank>