|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.AbstractIOObject
com.rapidminer.operator.ResultObjectAdapter
com.rapidminer.tools.math.Averagable
com.rapidminer.example.AttributeWeight
public class AttributeWeight
Helper class containing the name of an attribute and the corresponding weight.
| Constructor Summary | |
|---|---|
AttributeWeight(AttributeWeight attWeight)
Clone constructor. |
|
AttributeWeight(AttributeWeights weights,
java.lang.String name,
double weight)
Creates a new attribute weight object. |
|
| Method Summary | |
|---|---|
void |
buildSingleAverage(Averagable avg)
Builds the sum of weights and counters. |
int |
compareTo(AttributeWeight o)
Compares the weight of this object with the weight of another AttributeWeight object. |
boolean |
equals(java.lang.Object o)
Returns true if both objects have the same name and the same weight. |
double |
getMikroAverage()
Returns the current weight. |
double |
getMikroVariance()
Returns the MakroVariance since no other micro variance can be calculated. |
java.lang.String |
getName()
Returns the name of the attribute. |
double |
getWeight()
Returns the weight of the attribute. |
int |
hashCode()
|
void |
setWeight(double weight)
Sets the weight of the attribute. |
| Methods inherited from class com.rapidminer.tools.math.Averagable |
|---|
buildAverage, clone, cloneAveragable, formatPercent, getAverage, getAverageCount, getExtension, getFileDescription, getMakroAverage, getMakroStandardDeviation, getMakroVariance, getMikroStandardDeviation, getStandardDeviation, getVariance, getVisualizationComponent, setAverageCount, toString |
| Methods inherited from class com.rapidminer.operator.ResultObjectAdapter |
|---|
addAction, getActions, getResultIcon, isSavable, log, logError, logNote, logWarning, save, toHTML, toResultString |
| Methods inherited from class com.rapidminer.operator.AbstractIOObject |
|---|
copy, getLog, getSource, initWriting, read, setLoggingHandler, setSource, write |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rapidminer.operator.IOObject |
|---|
copy, getLog, getSource, setLoggingHandler, setSource, write |
| Constructor Detail |
|---|
public AttributeWeight(AttributeWeights weights,
java.lang.String name,
double weight)
public AttributeWeight(AttributeWeight attWeight)
| Method Detail |
|---|
public java.lang.String getName()
getName in interface ResultObjectgetName in class Averagablepublic double getWeight()
public void setWeight(double weight)
public double getMikroVariance()
getMikroVariance in class Averagablepublic double getMikroAverage()
getMikroAverage in class Averagablepublic int compareTo(AttributeWeight o)
compareTo in interface java.lang.Comparable<AttributeWeight>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void buildSingleAverage(Averagable avg)
buildSingleAverage in class Averagable
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||