|
||||||||||
| 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.AverageVector
com.rapidminer.operator.performance.PerformanceVector
public class PerformanceVector
Handles several performance criteria. It is possible to obtain more than one criterion and therefore they are added to a criteria list.
| Nested Class Summary | |
|---|---|
static class |
PerformanceVector.DefaultComparator
The default performance comparator compares the main criterion of two performance vectors. |
| Field Summary | |
|---|---|
static java.lang.String |
MAIN_CRITERION_FIRST
|
| Constructor Summary | |
|---|---|
PerformanceVector()
|
|
| Method Summary | |
|---|---|
void |
addCriterion(PerformanceCriterion crit)
|
java.lang.Object |
clone()
|
int |
compareTo(java.lang.Object o)
Returns a negative value iff o is better than this performance vector |
java.lang.String[] |
getCriteriaNames()
|
PerformanceCriterion |
getCriterion(int index)
|
PerformanceCriterion |
getCriterion(java.lang.String name)
|
java.lang.String |
getExtension()
Returns the default extension in file choosers. |
java.lang.String |
getFileDescription()
Returns the file description used in file choosers. |
PerformanceCriterion |
getMainCriterion()
Returns the main PerformanceCriterion. |
javax.swing.Icon |
getResultIcon()
Returns null. |
java.awt.Component |
getVisualizationComponent(IOContainer container)
Returns a editor pane that displays the ResultObjectAdapter.toResultString() result
encoded as html. |
void |
initWriting()
Init the value map which ensures an easy human readable format. |
void |
save(java.io.File file)
Saves the object into the given file by using the AbstractIOObject.write(OutputStream)
method of IOObject (XML format). |
void |
setComparator(PerformanceComparator comparator)
|
void |
setMainCriterionName(java.lang.String mcName)
Sets the name of the main average (must be added by AverageVector.addAveragable(Averagable)) |
java.lang.String |
toString()
|
| Methods inherited from class com.rapidminer.tools.math.AverageVector |
|---|
addAveragable, buildAverages, equals, getAveragable, getAveragable, getSize, hashCode, removeAveragable, size, toResultString |
| Methods inherited from class com.rapidminer.operator.ResultObjectAdapter |
|---|
addAction, getActions, getName, isSavable, log, logError, logNote, logWarning, toHTML |
| Methods inherited from class com.rapidminer.operator.AbstractIOObject |
|---|
copy, getLog, getSource, 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 |
| Field Detail |
|---|
public static final java.lang.String MAIN_CRITERION_FIRST
| Constructor Detail |
|---|
public PerformanceVector()
| Method Detail |
|---|
public void setComparator(PerformanceComparator comparator)
public void addCriterion(PerformanceCriterion crit)
public PerformanceCriterion getCriterion(int index)
public PerformanceCriterion getCriterion(java.lang.String name)
public java.lang.String[] getCriteriaNames()
public void setMainCriterionName(java.lang.String mcName)
AverageVector.addAveragable(Averagable))
public PerformanceCriterion getMainCriterion()
PerformanceCriterion. If the main criterion is
not specified by setMainCriterionName(String), the first
criterion is returned.
public int compareTo(java.lang.Object o)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AverageVectorjava.lang.CloneNotSupportedExceptionpublic java.awt.Component getVisualizationComponent(IOContainer container)
ResultObjectAdapterResultObjectAdapter.toResultString() result
encoded as html. Please note that the returned pane is already enclosed
by a scroll pane. If you overwrite this method you should again ensure that
the returned component is scrollable. The given container is totally ignored.
getVisualizationComponent in interface ResultObjectgetVisualizationComponent in class AverageVectorpublic javax.swing.Icon getResultIcon()
ResultObjectAdapter
getResultIcon in interface ResultObjectgetResultIcon in class ResultObjectAdapterpublic java.lang.String toString()
toString in class AverageVectorpublic java.lang.String getExtension()
Saveable
public java.lang.String getFileDescription()
Saveable
public void save(java.io.File file)
throws java.io.IOException
ResultObjectAdapterAbstractIOObject.write(OutputStream)
method of IOObject (XML format).
save in interface Saveablesave in class ResultObjectAdapterjava.io.IOExceptionpublic void initWriting()
initWriting in class AbstractIOObject
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||