|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.eval.ValueSummary
public class ValueSummary
Creates StatisticalSummary
for any number of items ("keys") that occur zero or more times in any
number of runs ("identifiers"). See the method descriptions for details.
Instances of this class are not thread-safe and must be synchronized externally, if required.
Constructor Summary | |
---|---|
ValueSummary()
Creates a new instance. |
Method Summary | |
---|---|
void |
add(String identifier,
Bag bag)
Adds a set of counts (a bag) to the statistics. |
SortedMap<Object,org.apache.commons.math.stat.descriptive.StatisticalSummary> |
calculateSummaries()
Will calculate a statistical summary for each
object contained in at least one of the bags
added to this instance. |
void |
storeEntries(FieldContainer fContainer)
Writes all relevant information to a field container for serialization. |
String |
toString()
Returns a compact string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValueSummary()
Method Detail |
---|
public void add(String identifier, Bag bag) throws IllegalStateException
identifier
- how to refer to this bagbag
- the set of counts to add
IllegalStateException
- if calculateSummaries()
(or
storeEntries(FieldContainer)
has already been invoked on this
instancepublic SortedMap<Object,org.apache.commons.math.stat.descriptive.StatisticalSummary> calculateSummaries()
statistical summary
for each
object contained in at least one of the bags
added
to this instance. After invoking this
method, this object is immutable -- any further calls to
add(String, Bag)
will yield an IllegalStateException
.
public void storeEntries(FieldContainer fContainer)
calculateSummaries()
(if necessary)
and stores the mean
,
sum
, and
standard deviation
as well as all individual counts for each added
key. Keys are serialized in alphabetic order.
storeEntries
in interface StorableContainer
fContainer
- fContainer the field container to fillpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |