public static class AbstractScoreBasedClassifier.DoubleTableResult extends Result
Result
s given as a table of double
s.Result
comment, datatype, name
Constructor and Description |
---|
DoubleTableResult(StringBuffer representation)
The standard constructor for the interface
Storable
. |
DoubleTableResult(String name,
String comment,
AbstractList<double[]> list)
This is the default constructor that creates an instance based on the results
given in
list |
Modifier and Type | Method and Description |
---|---|
protected void |
appendFurtherInfos(StringBuffer xml)
This method can be used in the method
Storable.toXML() to extract
further information (name, comment, datatype). |
protected void |
extractFurtherInfos(StringBuffer xml)
This method can be used in the constructor with parameter
StringBuffer to
extract the further 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[][] |
getValue()
Returns the value of the
AnnotatedEntity . |
String |
getXMLTag()
This method returns a tag used as outer tag of the XML description.
|
static ImageResult |
plot(REnvironment e,
AbstractScoreBasedClassifier.DoubleTableResult... dtr)
This method plots an array of
AbstractScoreBasedClassifier.DoubleTableResult s in one
image. |
String |
toString() |
checkDatatype, createResult, getOriginalName, isCastableResult, isComparableResult, rename
getComment, getDatatype, getName, toXML
public DoubleTableResult(String name, String comment, AbstractList<double[]> list)
list
name
- the name of the resultcomment
- the comment for the resultlist
- the list of valuespublic 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
public String getXMLTag()
AnnotatedEntity
getXMLTag
in class AnnotatedEntity
protected void extractFurtherInfos(StringBuffer xml) throws NonParsableException
AnnotatedEntity
StringBuffer
to
extract the further information.extractFurtherInfos
in class Result
xml
- a XML represenation of the main information as
StringBuffer
NonParsableException
- if the XML representation is not parsableAnnotatedEntity.AnnotatedEntity(StringBuffer)
public double[] getLine(int index)
index
from the table.index
- the given indexindex
public int getNumberOfLines()
public double[][] getValue()
AnnotatedEntity
AnnotatedEntity
.getValue
in class AnnotatedEntity
AnnotatedEntity
protected void appendFurtherInfos(StringBuffer xml)
AnnotatedEntity
Storable.toXML()
to extract
further information (name, comment, datatype).appendFurtherInfos
in class Result
xml
- a XML representation of the main information as
StringBuffer
Storable.toXML()
public static final ImageResult plot(REnvironment e, AbstractScoreBasedClassifier.DoubleTableResult... dtr) throws Exception
AbstractScoreBasedClassifier.DoubleTableResult
s in one
image.dtr
- the array of AbstractScoreBasedClassifier.DoubleTableResult
se
- the R environmentImageResult
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.DoubleTableResult
se
- the R environmentplotOptions
- ROCCurve.NAME
or PRCurve.NAME
StringBuffer
containing the plot commandsException
- if something went wrongpublic 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.DoubleTableResult
se
- the R environmentplotOptions
- ROCCurve.NAME
or PRCurve.NAME
colors
- array of colors for the dtrsStringBuffer
containing the plot commandsException
- if something went wrongpublic 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.DoubleTableResult
se
- the R environmentplotOptions
- ROCCurve.NAME
or PRCurve.NAME
colors
- array of colors for the dtrsStringBuffer
containing the plot commandsException
- if something went wrong