com.rapidminer.tools.math
Class RunVector

java.lang.Object
  extended by com.rapidminer.operator.AbstractIOObject
      extended by com.rapidminer.operator.ResultObjectAdapter
          extended by com.rapidminer.tools.math.RunVector
All Implemented Interfaces:
IOObject, ResultObject, Saveable, LoggingHandler, java.io.Serializable

public class RunVector
extends ResultObjectAdapter

Collects the average vectors of a run. The averagables can be averaged by using average().

Author:
Ralf Klinkenberg, Ingo Mierswa
See Also:
Serialized Form

Constructor Summary
RunVector()
           
 
Method Summary
 void addVector(AverageVector av)
          Adds a new average vector.
 AverageVector average()
          Calculates the mean value of the averagables of the average vectors and returns an average vector which contains for each averagable the mean value.
 java.lang.String getExtension()
          Returns the default extension in file choosers.
 java.lang.String getFileDescription()
          Returns the file description used in file choosers.
 AverageVector getVector(int index)
          Returns the average vector with index i.
 java.util.ArrayList getVectorList()
          Returns all average vectors as list.
 int size()
          Returns the number of average vectors.
 java.lang.String toResultString()
          returns a String containing a time series of the values of each averagable and the average of all averagables over all runs.
 java.lang.String toString()
           
 
Methods inherited from class com.rapidminer.operator.ResultObjectAdapter
addAction, getActions, getName, getResultIcon, getVisualizationComponent, isSavable, log, logError, logNote, logWarning, save, toHTML
 
Methods inherited from class com.rapidminer.operator.AbstractIOObject
copy, getLog, getSource, initWriting, read, setLoggingHandler, setSource, write
 
Methods inherited from class java.lang.Object
clone, 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

RunVector

public RunVector()
Method Detail

addVector

public void addVector(AverageVector av)
Adds a new average vector.


getVector

public AverageVector getVector(int index)
Returns the average vector with index i.


getVectorList

public java.util.ArrayList getVectorList()
Returns all average vectors as list.


size

public int size()
Returns the number of average vectors.


average

public AverageVector average()
Calculates the mean value of the averagables of the average vectors and returns an average vector which contains for each averagable the mean value.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toResultString

public java.lang.String toResultString()
returns a String containing a time series of the values of each averagable and the average of all averagables over all runs.

Specified by:
toResultString in interface ResultObject
Overrides:
toResultString in class ResultObjectAdapter

getExtension

public java.lang.String getExtension()
Description copied from interface: Saveable
Returns the default extension in file choosers.


getFileDescription

public java.lang.String getFileDescription()
Description copied from interface: Saveable
Returns the file description used in file choosers.



Copyright © 2001-2009 by Rapid-I