|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.results.Result
de.jstacs.classifier.AbstractScoreBasedClassifier.DoubleTableResult
public static class AbstractScoreBasedClassifier.DoubleTableResult
This class is for Results given as a table of double
s.
Result| Field Summary |
|---|
| Fields inherited from class de.jstacs.results.Result |
|---|
comment, datatype, name |
| Constructor Summary | |
|---|---|
AbstractScoreBasedClassifier.DoubleTableResult(StringBuffer representation)
The standard constructor for the interface Storable
. |
|
AbstractScoreBasedClassifier.DoubleTableResult(String name,
String comment,
AbstractList<double[]> list)
This is the default constructor that creates an instance based on the results given in list |
|
| Method Summary | |
|---|---|
protected void |
fromXML(StringBuffer representation)
This method is used in Result.Result(StringBuffer) to extract the
information. |
double[] |
getLine(int index)
Return the line with a given index from the table. |
int |
getNumberOfLines()
Returns the number of lines in this table. |
static StringBuffer |
getPlotCommands(REnvironment e,
String plotOptions,
AbstractScoreBasedClassifier.DoubleTableResult... dtr)
This method copies the data to the server side and creates a StringBuffer containing the plot commands. |
static StringBuffer |
getPlotCommands(REnvironment e,
String plotOptions,
int[] colors,
AbstractScoreBasedClassifier.DoubleTableResult... dtr)
This method copies the data to the server side and creates a StringBuffer containing the plot commands. |
static StringBuffer |
getPlotCommands(REnvironment e,
String plotOptions,
String[] colors,
AbstractScoreBasedClassifier.DoubleTableResult... dtr)
This method copies the data to the server side and creates a StringBuffer containing the plot commands. |
double[][] |
getResult()
Returns the value of the Result. |
static ImageResult |
plot(REnvironment e,
AbstractScoreBasedClassifier.DoubleTableResult... dtr)
This method plots an array of AbstractScoreBasedClassifier.DoubleTableResults in one
image. |
String |
toString()
|
StringBuffer |
toXML()
This method returns an XML representation as StringBuffer of an
instance of the implementing class. |
| Methods inherited from class de.jstacs.results.Result |
|---|
appendMainInfo, checkDatatype, createResult, extractMainInfo, getComment, getDatatype, getName, isCastableResult, isComparableResult |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractScoreBasedClassifier.DoubleTableResult(String name,
String comment,
AbstractList<double[]> list)
list
name - the name of the resultcomment - the comment for the resultlist - the list of values
public AbstractScoreBasedClassifier.DoubleTableResult(StringBuffer representation)
throws NonParsableException
Storable
. Creates a new AbstractScoreBasedClassifier.DoubleTableResult out of its XML
representation.
representation - the XML representation as StringBuffer
NonParsableException - if the AbstractScoreBasedClassifier.DoubleTableResult could not be
reconstructed out of the XML representation (the
StringBuffer representation could
not be parsed)Result.Result(StringBuffer),
Storable| Method Detail |
|---|
protected void fromXML(StringBuffer representation)
throws NonParsableException
ResultResult.Result(StringBuffer) to extract the
information. The method can be seen as opposite of
Storable.toXML() and should not be made public.
fromXML in class Resultrepresentation - the XML represenation of the Result to be parsed
NonParsableException - if the XML representation is not parsableResult.extractMainInfo(StringBuffer)public double[] getLine(int index)
index from the table.
index - the given index
indexpublic int getNumberOfLines()
public String toString()
toString in class Objectpublic double[][] getResult()
ResultResult.
getResult in class ResultResultpublic StringBuffer toXML()
StorableStringBuffer of an
instance of the implementing class.
public static final ImageResult plot(REnvironment e,
AbstractScoreBasedClassifier.DoubleTableResult... dtr)
throws Exception
AbstractScoreBasedClassifier.DoubleTableResults in one
image.
dtr - the array of AbstractScoreBasedClassifier.DoubleTableResultse - the R environment
ImageResult
Exception - if something went wrongImageResult.ImageResult(String, String, java.awt.image.BufferedImage)
public static final StringBuffer getPlotCommands(REnvironment e,
String plotOptions,
AbstractScoreBasedClassifier.DoubleTableResult... dtr)
throws Exception
StringBuffer containing the plot commands.
dtr - the array of AbstractScoreBasedClassifier.DoubleTableResultse - the R environmentplotOptions - MeasureParameters.Measure.ReceiverOperatingCharacteristicCurve
or MeasureParameters.Measure.PrecisionRecallCurve:
MeasureParameters.Measure.getNameString()StringBuffer containing the plot commands
Exception - if something went wrong
public static final StringBuffer getPlotCommands(REnvironment e,
String plotOptions,
int[] colors,
AbstractScoreBasedClassifier.DoubleTableResult... dtr)
throws Exception
StringBuffer containing the plot commands.
dtr - the array of AbstractScoreBasedClassifier.DoubleTableResultse - the R environmentplotOptions - MeasureParameters.Measure.ReceiverOperatingCharacteristicCurve
or MeasureParameters.Measure.PrecisionRecallCurve:
MeasureParameters.Measure.getNameString()colors - array of colors for the dtrs
StringBuffer containing the plot commands
Exception - if something went wrong
public static final StringBuffer getPlotCommands(REnvironment e,
String plotOptions,
String[] colors,
AbstractScoreBasedClassifier.DoubleTableResult... dtr)
throws Exception
StringBuffer containing the plot commands.
dtr - the array of AbstractScoreBasedClassifier.DoubleTableResultse - the R environmentplotOptions - MeasureParameters.Measure.ReceiverOperatingCharacteristicCurve
or MeasureParameters.Measure.PrecisionRecallCurve:
MeasureParameters.Measure.getNameString()colors - array of colors for the dtrs
StringBuffer containing the plot commands
Exception - if something went wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||