analyzer.stat
Class TimeSeries

java.lang.Object
  |
  +--analyzer.stat.TimeSeries

public class TimeSeries
extends java.lang.Object

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


Field Summary
protected  double corrtime
          The autocorrelation time.
 double[] data
          The time series data
protected  int imax
          The ending cutoff for calculating statistics.
protected  int imin
          The starting cutoff for calculating statistics.
protected  double mean
          The mean.
protected  double var
          The varience.
 
Constructor Summary
TimeSeries(double[] data)
          Create a TimeSeries object that refers to the given array.
 
Method Summary
protected  void calcMean()
           
 double getCorrTime()
          Return the autocorrelation time being used for estimating the error of the mean.
 int getIMax()
           
 int getIMin()
           
 double getMean()
          Return the mean.
 double getMeanErr()
          Return the error of the mean.
 double getVar()
          Return the varience.
 void setCorrTime(double time)
          Set the autocorrelation time.
 void setIMax(int i)
          Set the ending cutoff for calculating statistics.
 void setIMin(int i)
          Set the starting cutoff for calculating statistics.
 
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.

corrtime

protected double corrtime
The autocorrelation time.

imin

protected int imin
The starting cutoff for calculating statistics.

imax

protected int imax
The ending cutoff for calculating statistics.

data

public double[] data
The time series data
Constructor Detail

TimeSeries

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

setIMin

public void setIMin(int i)
Set the starting cutoff for calculating statistics. Does nothing if argument is out of range. The return value is the value of imin after the method call.

setIMax

public void setIMax(int i)
Set the ending cutoff for calculating statistics. Does nothing if argument is out of range. The return value is the value of imax after the method call.

setCorrTime

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

getMean

public double getMean()
Return the mean.

getMeanErr

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

getVar

public double getVar()
Return the varience.

getCorrTime

public double getCorrTime()
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.

getIMin

public int getIMin()

getIMax

public int getIMax()

calcMean

protected void calcMean()


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