
SSJ V. 1.2.5. 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object java.util.Observable umontreal.iro.lecuyer.stat.StatProbe umontreal.iro.lecuyer.stat.Tally umontreal.iro.lecuyer.stat.TallyStore
public class TallyStore
This class is a variant of Tally
, but for which the individual
observations are stored in a list implemented as a
DoubleArrayList
.
The DoubleArrayList
object used to
store the values can be either passed to the constructor or created by
the constructor, and can be accessed via the getArray
method.
The same counters as in Tally
are maintained and are used by
the inherited methods. To compute quantities not supported by the
Tally
methods, and/or to use methods provided by the COLT package,
one must access the list.
Never add or remove observations directly on the
DoubleArrayList
object,
because this would put the counters of the TallyStore object in an
inconsistent state.
There are two potential reasons for using a TallyStore
object
instead of directly using a DoubleArrayList
object:
(a) it is an Observable
object and
(b) it maintains a few additional counters that may speed up some operations
such as computing the average.
Constructor Summary  

TallyStore()
Construct a new TallyStore statistical probe. 

TallyStore(DoubleArrayList a)
Construct a new TallyStore statistical probe with given associated array. 

TallyStore(int initialCapacity)
Construct a new TallyStore statistical probe with given initial capacity for its associated array. 
Method Summary  

void 
add(double x)
Gives a new observation x to the statistical collector. 
Object 
clone()
Clone this object. 
double 
covariance(TallyStore t2)
Returns the sample covariance of the observations contained in this tally, and the other tally t2. 
DoubleArrayList 
getArray()
Returns the DoubleArrayList
object that contains the observations for this probe. 
void 
init()
Initializes the statistical collector. 
Methods inherited from class umontreal.iro.lecuyer.stat.Tally 

average, confidenceIntervalStudent, formatCIStudent, formatCIStudent, formatConfidenceIntervalStudent, formatConfidenceIntervalStudent, numberObs, report, reportAndCIStudent, reportAndCIStudent, reportAndConfidenceIntervalStudent, reportAndConfidenceIntervalStudent, standardDeviation, variance 
Methods inherited from class umontreal.iro.lecuyer.stat.StatProbe 

getName, max, min, setBroadcasting, setCollecting, setName, sum 
Methods inherited from class java.util.Observable 

addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers 
Methods inherited from class java.lang.Object 

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Constructor Detail 

public TallyStore()
public TallyStore(int initialCapacity)
initialCapacity
 initial capacity of the array of observationspublic TallyStore(DoubleArrayList a)
a
 array that will contain observationsMethod Detail 

public void init()
StatProbe
init
in class Tally
public void add(double x)
Tally
notifyObservers
(new Double (x))
inherited from
Observable
.
add
in class Tally
x
 observation being added to this tallypublic DoubleArrayList getArray()
DoubleArrayList
object that contains the observations for this probe.
public double covariance(TallyStore t2)
t2
 the other tally.
public Object clone()
clone
in class Tally

SSJ V. 1.2.5. 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 