public static class AbstractScoreBasedClassifier.DoubleTableResult extends Result
Results given as a table of double
s.Resultcomment, datatype, name| Constructor and Description |
|---|
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 |
| 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.DoubleTableResults in one
image. |
String |
toString() |
checkDatatype, createResult, isCastableResult, isComparableResultgetComment, getDatatype, getName, toXMLpublic AbstractScoreBasedClassifier.DoubleTableResult(String name, String comment, AbstractList<double[]> list)
listname - the name of the resultcomment - the comment for the resultlist - the list of valuespublic AbstractScoreBasedClassifier.DoubleTableResult(StringBuffer representation) throws NonParsableException
Storable
. Creates a new AbstractScoreBasedClassifier.DoubleTableResult out of its XML
representation.representation - the XML representation as StringBufferNonParsableException - if the AbstractScoreBasedClassifier.DoubleTableResult could not be
reconstructed out of the XML representation (the
StringBuffer representation could
not be parsed)Result.Result(StringBuffer),
Storablepublic String getXMLTag()
AnnotatedEntitygetXMLTag in class AnnotatedEntityprotected void extractFurtherInfos(StringBuffer xml) throws NonParsableException
AnnotatedEntityStringBuffer to
extract the further information.extractFurtherInfos in class AnnotatedEntityxml - a XML represenation of the main information as
StringBufferNonParsableException - if the XML representation is not parsableAnnotatedEntity.AnnotatedEntity(StringBuffer)public double[] getLine(int index)
index from the table.index - the given indexindexpublic int getNumberOfLines()
public double[][] getValue()
AnnotatedEntityAnnotatedEntity.getValue in class AnnotatedEntityAnnotatedEntityprotected void appendFurtherInfos(StringBuffer xml)
AnnotatedEntityStorable.toXML() to extract
further information (name, comment, datatype).appendFurtherInfos in class AnnotatedEntityxml - a XML representation of the main information as
StringBufferStorable.toXML()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 environmentImageResultException - 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 - ROCCurve.NAME or PRCurve.NAMEStringBuffer 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.DoubleTableResultse - the R environmentplotOptions - ROCCurve.NAME or PRCurve.NAMEcolors - 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.DoubleTableResultse - the R environmentplotOptions - ROCCurve.NAME or PRCurve.NAMEcolors - array of colors for the dtrsStringBuffer containing the plot commandsException - if something went wrong