sim
Class CI

java.lang.Object
  extended by sim.CI

public class CI
extends java.lang.Object

Simple confidence interval implementation.


Field Summary
(package private)  double meanTotal
           
(package private)  double momentTotal
           
(package private)  int numSamples
           
 
Constructor Summary
CI()
           
 
Method Summary
 void addSample(double sample)
           
 double getCI()
          Returns current confidence interval width, at confidence level corresponding to hardcoded ciLevelWidth value.
 java.lang.String getCIString()
          Returns the confidence level being used as a string.
 double getMean()
          Returns current sample mean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numSamples

int numSamples

meanTotal

double meanTotal

momentTotal

double momentTotal
Constructor Detail

CI

public CI()
Method Detail

addSample

public void addSample(double sample)

getMean

public double getMean()
Returns current sample mean.


getCI

public double getCI()
Returns current confidence interval width, at confidence level corresponding to hardcoded ciLevelWidth value.


getCIString

public java.lang.String getCIString()
Returns the confidence level being used as a string.