public class MeanResultSet extends NumericalResultSet
NumericalResultSet
s. Each NumericalResultSet
in the series
must be added using the method addResults(NumericalResultSet...)
.
The means and the standard errors can be obtained by getStatistics()
.Modifier and Type | Class and Description |
---|---|
static class |
MeanResultSet.AdditionImpossibleException
Class for the exception that is thrown if two
MeanResultSet s
should be added that do not match. |
static class |
MeanResultSet.InconsistentResultNumberException
Class for the exception that is thrown if a
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. |
Constructor and Description |
---|
MeanResultSet()
Constructs a new
MeanResultSet with an empty set of
NumericalResultSet s and no further information. |
MeanResultSet(boolean aggregateAll,
SimpleResult... infos)
Constructs a new
MeanResultSet with an empty set of
NumericalResultSet s and allows to collect all
values via the switch aggregateAll . |
MeanResultSet(SimpleResult... infos)
Constructs a new
MeanResultSet with an empty set of
NumericalResultSet s. |
MeanResultSet(StringBuffer representation)
The standard constructor for the interface
Storable . |
Modifier and Type | Method and Description |
---|---|
static MeanResultSet |
addResults(MeanResultSet r1,
MeanResultSet r2)
Adds two
MeanResultSet s together. |
void |
addResults(NumericalResultSet... rs)
Adds
NumericalResultSet s to this MeanResultSet . |
protected void |
fromXML(StringBuffer representation)
Parses the contents of a
ResultSet from its XML representation as
returned by ResultSet.toXML() . |
double[] |
getAllValues(int index)
Returns all values of the result with index
index if available otherwise null . |
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 as
StringBuffer of an
instance of the implementing class. |
getResultAt
findColumn, getNumberOfResults, getResultForName, getResults, toString
public MeanResultSet(boolean aggregateAll, SimpleResult... infos)
MeanResultSet
with an empty set of
NumericalResultSet
s and allows to collect all
values via the switch aggregateAll
.infos
- some information to this MeanResultSet
aggregateAll
- a switch to decide whether all values should be collectedpublic MeanResultSet(SimpleResult... infos)
MeanResultSet
with an empty set of
NumericalResultSet
s.infos
- some information to this MeanResultSet
public MeanResultSet()
MeanResultSet
with an empty set of
NumericalResultSet
s and no further information.public MeanResultSet(StringBuffer representation) throws NonParsableException
Storable
.
Creates a new MeanResultSet
from the corresponding XML
representation.representation
- the XML representation as StringBuffer
NonParsableException
- if the StringBuffer
representation
could
not be parsedpublic StringBuffer toXML()
Storable
StringBuffer
of an
instance of the implementing class.protected void fromXML(StringBuffer representation) throws NonParsableException
ResultSet
ResultSet
from its XML representation as
returned by ResultSet.toXML()
.fromXML
in class ResultSet
representation
- the XML representation as StringBuffer
NonParsableException
- if the XML code could not be parsedpublic static MeanResultSet addResults(MeanResultSet r1, MeanResultSet r2) throws MeanResultSet.AdditionImpossibleException
MeanResultSet
s together.r1
- one MeanResultSet
r2
- another MeanResultSet
MeanResultSet
MeanResultSet.AdditionImpossibleException
- if the Result
s does not matchpublic void addResults(NumericalResultSet... rs) throws MeanResultSet.InconsistentResultNumberException, SimpleParameter.IllegalValueException, MeanResultSet.AdditionImpossibleException
NumericalResultSet
s to this MeanResultSet
. The
NumericalResultSet
s are handled as one result. So if you call
this method with e.g. three arguments this is the same as adding one
combing argument and not the same as calling the method three times, each
time with one argument.rs
- the NumericalResultSet
s to be addedMeanResultSet.InconsistentResultNumberException
- if the number of results differSimpleParameter.IllegalValueException
- if the new (merged) value could not be setMeanResultSet.AdditionImpossibleException
- if some results are not comparable (name, comment, type)public NumericalResultSet getStatistics()
MeanResultSet
as a new NumericalResultSet
.MeanResultSet
public double[] getAllValues(int index)
index
if available otherwise null
.index
- the index of the resultnull
public ResultSet getInfos()
MeanResultSet
.MeanResultSet