SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | Protected Attributes | List of all members
AnovaVarianceCollector Class Reference

Extends ListOfTallies to collect ANOVA variances. More...

Inheritance diagram for AnovaVarianceCollector:
[legend]
Collaboration diagram for AnovaVarianceCollector:
[legend]

Public Member Functions

 AnovaVarianceCollector (Iterable< CoordinateSet > coordSets)
 Constructs an ANOVA collector for the coordinate sets coordSets.
 
void addObserver (AnovaObserver observer)
 Add an observer, which is notified when the ANOVA variance collector is updated.
 
void init ()
 Resets all collectors.
 
void add (double[] vars)
 Adds an observation of ANOVA variances. More...
 
void sort ()
 Sorts the computed variances. More...
 
Tally getMeanCorrection ()
 Returns the mean correction collector.
 
Tally getTotalVariance ()
 Returns the total variance collector.
 
double getVarianceForOrder (int order)
 Returns the total variance for all projections of dimension order.
 
double getVarianceFractionForOrder (int order)
 Returns the total variance fraction for all projections of dimension order.
 
double getTotalVarianceForCoordinate (CoordinateSet coords)
 Returns the total variance for a specific projection or a negative number if the projection coords have not been analysed.
 
double getTotalVarianceForCoordinate (int coord)
 Returns the total variance for all projections involving coordinate coord.
 
int getMaxOrder ()
 Returns the maximum dimension of the projections contained in the list.
 
String toString ()
 Returns a description of the ANOVA collector.
 
String report ()
 Returns a report of the current state of estimation of the ANOVA variances. More...
 
- Public Member Functions inherited from ListOfTallies< E extends Tally >
 ListOfTallies ()
 Constructs a new empty list of tallies.
 
 ListOfTallies (String name)
 Constructs a new empty list of tallies with name name. More...
 
void add (double[] x)
 Adds the observation x[i] in tally i of this list, for i = 0,…, size() - 1. More...
 
int numberObs ()
 Assuming that each tally in this list contains the same number of observations, returns the number of observations in tally 0, or 0 if this list is empty. More...
 
boolean areAllNumberObsEqual ()
 Tests that every tally in this list contains the same number of observations. More...
 
void average (double[] r)
 Computes the average for each tally in this list, and stores the averages in the array r. More...
 
void variance (double[] v)
 For each tally in this list, computes the sample variance, and stores the variances into the array v. More...
 
void standardDeviation (double[] std)
 For each tally in this list, computes the sample standard deviation, and stores the standard deviations into the array std. More...
 
double covariance (int i, int j)
 Returns the empirical covariance of the observations in tallies with indices i and j. More...
 
double correlation (int i, int j)
 Returns the empirical correlation between the observations in tallies with indices i and j. More...
 
void covariance (DoubleMatrix2D c)
 Constructs and returns the sample covariance matrix for the tallies in this list. More...
 
void correlation (DoubleMatrix2D c)
 Similar to covariance(DoubleMatrix2D) for computing the sample correlation matrix. More...
 
ListOfTallies< E > clone ()
 Clones this object. More...
 
- Public Member Functions inherited from ListOfStatProbes< E >
 ListOfStatProbes ()
 Constructs an empty list of statistical probes.
 
 ListOfStatProbes (String name)
 Constructs an empty list of statistical probes with name name. More...
 
String getName ()
 Returns the global name of this list of statistical probes. More...
 
void setName (String name)
 Sets the global name of this list to name. More...
 
boolean isModifiable ()
 Determines if this list of statistical probes is modifiable, i.e., if probes can be added or removed. More...
 
void setUnmodifiable ()
 Forbids any future modification to this list of statistical probes. More...
 
void init ()
 Initializes this list of statistical probes by calling umontreal.ssj.stat.StatProbe.init on each element.
 
void sum (double[] s)
 For each probe in the list, computes the sum by calling umontreal.ssj.stat.StatProbe.sum, and stores the results into the array s. More...
 
void average (double[] a)
 For each probe in this list, computes the average by calling umontreal.ssj.stat.StatProbe.average, and stores the results into the array a. More...
 
boolean isCollecting ()
 Determines if this list of statistical probes is collecting values. More...
 
void setCollecting (boolean c)
 Sets the status of the statistical collecting mechanism to c. More...
 
boolean isBroadcasting ()
 Determines if this list of statistical probes is broadcasting observations to registered observers. More...
 
void setBroadcasting (boolean b)
 Sets the status of the observation broadcasting mechanism to b. More...
 
void addArrayOfObservationListener (ArrayOfObservationListener l)
 Adds the observation listener l to the list of observers of this list of statistical probes. More...
 
void removeArrayOfObservationListener (ArrayOfObservationListener l)
 Removes the observation listener l from the list of observers of this list of statistical probes. More...
 
void clearArrayOfObservationListeners ()
 Removes all observation listeners from the list of observers of this list of statistical probes.
 
void notifyListeners (double[] x)
 Notifies the observation x to all registered observers if broadcasting is ON. More...
 
String report ()
 Formats a report for each probe in the list of statistical probes. More...
 
ListOfStatProbes< E > clone ()
 Clones this object. More...
 
boolean add (E o)
 
void add (int index, E o)
 
boolean addAll (Collection<? extends E > c)
 
boolean addAll (int index, Collection<? extends E > c)
 
void clear ()
 
boolean contains (Object o)
 
boolean containsAll (Collection<?> c)
 
boolean equals (Object o)
 
get (int index)
 
int hashCode ()
 
int indexOf (Object o)
 
boolean isEmpty ()
 
Iterator< E > iterator ()
 
int lastIndexOf (Object o)
 
ListIterator< E > listIterator ()
 
ListIterator< E > listIterator (int index)
 
remove (int index)
 
boolean remove (Object o)
 
boolean removeAll (Collection<?> c)
 
boolean retainAll (Collection<?> c)
 
set (int index, E element)
 
int size ()
 
List< E > subList (int fromIndex, int toIndex)
 
Object [] toArray ()
 

Protected Attributes

List< AnovaObserverobservers
 
Tally meanCorrection
 
Tally totalVar
 
boolean sorted
 
- Protected Attributes inherited from ListOfStatProbes< E >
boolean collect
 
boolean broadcast
 
String name
 

Additional Inherited Members

- Static Public Member Functions inherited from ListOfTallies< E extends Tally >
static ListOfTallies< TallycreateWithTally (int size)
 This factory method constructs and returns a list of tallies with size instances of umontreal.ssj.stat.Tally. More...
 
static ListOfTallies< TallyStorecreateWithTallyStore (int size)
 This factory method constructs and returns a list of tallies with size instances of umontreal.ssj.stat.TallyStore. More...
 
static ListOfTallies< TallyStorecreateWithTallyStore (int size, int t)
 This factory method constructs and returns a list of tallies with size instances of umontreal.ssj.stat.TallyStore, each of size \(t\). More...
 
- Package Functions inherited from ListOfStatProbes< E >
public< T > T [] toArray (T[] a)
 

Detailed Description

Extends ListOfTallies to collect ANOVA variances.

Member Function Documentation

◆ add()

void add ( double []  vars)

Adds an observation of ANOVA variances.

The first size() items in vars are the observed partial variances. The last two items are respectively the observed correction to the mean and total variance.

◆ report()

String report ( )

Returns a report of the current state of estimation of the ANOVA variances.

Values are printed under the form: value ± standard deviation.

◆ sort()

void sort ( )

Sorts the computed variances.

It is no longer possible to gather data after sorting.


The documentation for this class was generated from the following file: