|
||||||||||
| 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
public abstract class Averagable
Superclass for all objects which can be averaged. Averagable objects can be stored in a average vector.
| Constructor Summary | |
|---|---|
Averagable()
|
|
Averagable(Averagable o)
|
|
| Method Summary | |
|---|---|
void |
buildAverage(Averagable averagable)
This method builds the makro average of two averagables of the same type. |
protected abstract void |
buildSingleAverage(Averagable averagable)
This method should build the average of this and another averagable of the same type. |
java.lang.Object |
clone()
Returns a (deep) clone of this averagable. |
protected void |
cloneAveragable(Averagable other)
Deprecated. Please use copy constructors instead |
boolean |
formatPercent()
Indicates wether or not percentage format should be used in the toString() method. |
double |
getAverage()
This method returns the makro average if it was defined and the mikro average (the current value) otherwise. |
int |
getAverageCount()
Returns the number of averagables used to create this averagable. |
java.lang.String |
getExtension()
Returns the default extension in file choosers. |
java.lang.String |
getFileDescription()
Returns the file description used in file choosers. |
double |
getMakroAverage()
Returns the average value of all performance criteria average by using the buildAverage(Averagable) method. |
double |
getMakroStandardDeviation()
Returns the standard deviation of all performance criteria average by using the buildAverage(Averagable) method. |
double |
getMakroVariance()
Returns the variance of all performance criteria average by using the buildAverage(Averagable) method. |
abstract double |
getMikroAverage()
Returns the (current) value of the averagable (the average itself). |
double |
getMikroStandardDeviation()
Returns the standard deviation of the performance criterion. |
abstract double |
getMikroVariance()
Returns the variance of the averagable. |
abstract java.lang.String |
getName()
Returns the name of this averagable. |
double |
getStandardDeviation()
This method returns the makro standard deviation if it was defined and the mikro standard deviation otherwise. |
double |
getVariance()
This method returns the makro variance if it was defined and the mikro variance otherwise. |
java.awt.Component |
getVisualizationComponent(IOContainer ioContainer)
This default implementation returns a framed text pane containing the string delivered by toResultString(). |
void |
setAverageCount(int averageCount)
|
java.lang.String |
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 |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rapidminer.operator.IOObject |
|---|
copy, getLog, getSource, setLoggingHandler, setSource, write |
| Constructor Detail |
|---|
public Averagable()
public Averagable(Averagable o)
| Method Detail |
|---|
public abstract java.lang.String getName()
getName in interface ResultObjectgetName in class ResultObjectAdapterpublic abstract double getMikroAverage()
buildSingleAverage(Averagable) was used, this method must return the
micro average from both (or more) criteria. This is usually achieved by
correctly implementing buildSingleAverage(Averagable).
public abstract double getMikroVariance()
@Deprecated protected final void cloneAveragable(Averagable other)
other to this. When this method is called,
it is guaranteed, that other is a subclass of the class of
the object it is called on.
protected abstract void buildSingleAverage(Averagable averagable)
getMikroAverage() should return the
average of this and the given averagable. Hence, this method is used to build
the actual micro average value of two criteria. Please refer to
SimpleCriterion for a simple
implementation example.
public final void buildAverage(Averagable averagable)
this and
performance are the same and if the getName()
methods return the same String. Otherwise a RuntimeException is thrown.
averagable.getMikroAverage() is
added to meanSum, its square is added to
meanSquaredSum and averageCount is increased by one.
These values are used in the getMakroAverage() and
getMakroVariance() methods. this averagable and the given
averagable. They must be weighted by the number of
examples used for calculating the averagables.
public final double getAverage()
getMikroAverage() for optimization purposes, i.e. by methods like
getFitness() of performance criteria.
public final double getVariance()
public final double getStandardDeviation()
public final double getMikroStandardDeviation()
public final double getMakroAverage()
buildAverage(Averagable) method.
public final double getMakroVariance()
buildAverage(Averagable) method.
public final double getMakroStandardDeviation()
buildAverage(Averagable) method.
public int getAverageCount()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.awt.Component getVisualizationComponent(IOContainer ioContainer)
getVisualizationComponent in interface ResultObjectgetVisualizationComponent in class ResultObjectAdapterpublic boolean formatPercent()
toString() method. The default implementation returns false.
public java.lang.String getExtension()
Saveable
getExtension in interface Saveablepublic java.lang.String getFileDescription()
Saveable
getFileDescription in interface Saveablepublic java.lang.String toString()
toString in interface ReadabletoString in class java.lang.Objectpublic void setAverageCount(int averageCount)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||