analyzer.stat
Class ScalarSeries

java.lang.Object
  |
  +--analyzer.stat.ScalarSeries
Direct Known Subclasses:
ScalarDataset

public class ScalarSeries
extends java.lang.Object
implements DataListener

Class for representing time series data. Calculates mean and varience, and allows for imin and imax cutoffs.


Field Summary
protected  double autocor
          The autocorrelation time.
 double[] data
          The time series data
protected  javax.swing.event.EventListenerList listenerList
          Data listeners for this object
protected  double mean
          The mean.
protected  double sigma
          The standard deviation.
protected  double var
          The varience.
protected  DoubleWindowModel window
          The cutoff window for calculating statistics.
 
Constructor Summary
ScalarSeries(double[] data)
          Create a ScalarSeries object that refers to the given array.
 
Method Summary
 void addListener(DataListener e)
           
protected  void calcMean()
           
 void dataChanged(java.lang.Object o)
           
protected  void fireListeners(java.lang.Object o)
           
 double getAutoCorr()
          Return the autocorrelation time being used for estimating the error of the mean.
 double[] getData()
          Return the data.
 double getErrorOfMean()
          Return the error of the mean.
 double getMean()
          Return the mean.
 double getSigma()
          Return the standard deviation.
 double getVarience()
          Return the varience.
 DoubleWindowModel getWindow()
          Return the model for the datarange.
 void setAutocor(double time)
          Set the autocorrelation time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mean

protected double mean
The mean.

var

protected double var
The varience.

sigma

protected double sigma
The standard deviation.

autocor

protected double autocor
The autocorrelation time.

window

protected DoubleWindowModel window
The cutoff window for calculating statistics.

data

public double[] data
The time series data

listenerList

protected javax.swing.event.EventListenerList listenerList
Data listeners for this object
Constructor Detail

ScalarSeries

public ScalarSeries(double[] data)
Create a ScalarSeries object that refers to the given array.
Method Detail

setAutocor

public void setAutocor(double time)
Set the autocorrelation time. Used for calculating the error of the average.

getData

public double[] getData()
Return the data.

getMean

public double getMean()
Return the mean.

getErrorOfMean

public double getErrorOfMean()
Return the error of the mean.

getVarience

public double getVarience()
Return the varience.

getSigma

public double getSigma()
Return the standard deviation.

getAutoCorr

public double getAutoCorr()
Return the autocorrelation time being used for estimating the error of the mean. This value is not calculated by this class, but can be set using setCorrTime.

getWindow

public DoubleWindowModel getWindow()
Return the model for the datarange.

calcMean

protected void calcMean()

addListener

public void addListener(DataListener e)

fireListeners

protected void fireListeners(java.lang.Object o)

dataChanged

public void dataChanged(java.lang.Object o)
Specified by:
dataChanged in interface DataListener


Email questions and comments to
shumway@uiuc.edu or nzhong@ncsa.uiuc.edu