|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.results.ResultSet
de.jstacs.results.NumericalResultSet
de.jstacs.results.MeanResultSet
public class MeanResultSet
Class that computes the mean and the standard error of a series of NumericalResultSets. Each
NumericalResultSet in the series must be added using the addResult(NumericalResult)-method.
The means and the standard errors can be obtained by the getStatistics()-method.
| Nested Class Summary | |
|---|---|
static class |
MeanResultSet.AdditionImpossibleException
Class for the exception that is thrown if two MeanResultSet should be added that do not match. |
static class |
MeanResultSet.InconsistentResultNumberException
Class for the exception that is thrown if an NumericalResultSet is added to the
MeanResultSet that has a number of results which is not equal to the number of results of the
previously added results. |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.results.ResultSet |
|---|
results |
| Constructor Summary | |
|---|---|
MeanResultSet()
Constructs a new MeanResultSet with an empty set of NumericalResultSets and no
further information. |
|
MeanResultSet(SimpleResult... infos)
Constructs a new MeanResultSet with an empty set of NumericalResultSets. |
|
MeanResultSet(StringBuffer representation)
The constructor for a model in xml format. |
|
| Method Summary | |
|---|---|
static MeanResultSet |
addResults(MeanResultSet r1,
MeanResultSet r2)
Adds two MeanResultsSets. |
void |
addResults(NumericalResultSet... rs)
Adds NumericalResultSets to this MenResultSet. |
protected void |
fromXML(StringBuffer representation)
Parses the contents of a ResultSet from its XML-representation as returned by ResultSet.toXML(). |
ResultSet |
getInfos()
Returns some information for this MeanResultSet. |
NumericalResultSet |
getStatistics()
Returns the means and (if possible the) standard errors of the results in this MeanResultSet as a
new NumericalResultSet. |
StringBuffer |
toXML()
This method returns an XML-representation of an instance of the implementing class. |
| Methods inherited from class de.jstacs.results.NumericalResultSet |
|---|
getResultAt |
| Methods inherited from class de.jstacs.results.ResultSet |
|---|
findColumn, getNumberOfResults, getResults, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MeanResultSet(SimpleResult... infos)
MeanResultSet with an empty set of NumericalResultSets.
infos - some informationpublic MeanResultSet()
MeanResultSet with an empty set of NumericalResultSets and no
further information.
public MeanResultSet(StringBuffer representation)
throws NonParsableException
representation - the model in xml format
NonParsableException - if the StringBuffer could not be parsed| Method Detail |
|---|
public StringBuffer toXML()
Storable
toXML in interface StorabletoXML in class ResultSet
protected void fromXML(StringBuffer representation)
throws NonParsableException
ResultSetResultSet from its XML-representation as returned by ResultSet.toXML().
fromXML in class ResultSetrepresentation - the XML-representation
NonParsableException - is thrown if the XML-code could not be parsed
public static MeanResultSet addResults(MeanResultSet r1,
MeanResultSet r2)
throws MeanResultSet.AdditionImpossibleException
MeanResultsSets.
r1 - one resultr2 - the other result
MeanResultSet.AdditionImpossibleException - an AdditionImpossibleException is thrown if the Results does not
match.
public void addResults(NumericalResultSet... rs)
throws MeanResultSet.InconsistentResultNumberException,
SimpleParameter.IllegalValueException,
MeanResultSet.AdditionImpossibleException
rs - the NumericalResultSets
MeanResultSet.InconsistentResultNumberException - if the number of results differ
SimpleParameter.IllegalValueException - if the new (merged) value could not be set
MeanResultSet.AdditionImpossibleException - if some results are not comparable (name, comment, type)public NumericalResultSet getStatistics()
MeanResultSet as a
new NumericalResultSet.
public ResultSet getInfos()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||