|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.AnnotatedEntity
de.jstacs.results.Result
de.jstacs.classifiers.AbstractScoreBasedClassifier.DoubleTableResult
public static class AbstractScoreBasedClassifier.DoubleTableResult
This class is for Result
s given as a table of double
s.
Result
Field Summary |
---|
Fields inherited from class de.jstacs.AnnotatedEntity |
---|
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 |
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()
|
Methods inherited from class de.jstacs.results.Result |
---|
checkDatatype, createResult, isCastableResult, isComparableResult |
Methods inherited from class de.jstacs.AnnotatedEntity |
---|
getComment, getDatatype, getName, toXML |
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 valuespublic 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 |
---|
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 AnnotatedEntity
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 index
index
public int getNumberOfLines()
public String toString()
toString
in class Object
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 AnnotatedEntity
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 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.DoubleTableResult
se
- the R environmentplotOptions
- ROCCurve.NAME
or PRCurve.NAME
StringBuffer
containing the plot commands
Exception
- 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 dtrs
StringBuffer
containing the plot commands
Exception
- 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 dtrs
StringBuffer
containing the plot commands
Exception
- if something went wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |