gov.lanl.Analysis.category
Class GetFits

java.lang.Object
  |
  +--gov.lanl.Analysis.category.GetFits

public class GetFits
extends java.lang.Object

Generates control chart information for graphing component of the reporting webapp.

 

Field Summary
static double DAYS_IN_YEAR
           
static double MILLISECONDS_IN_DAY
           
static double PAGE_K
           
 
Constructor Summary
GetFits(double[] coefficients, java.lang.String t0Date, double errStdDev)
           
 
Method Summary
 double calcFits(java.util.Calendar day)
           
 double calcUCL(double fit)
          Calculate the upper control limit for the given daily fit.
static gov.lanl.Analysis.category.GetFits createInstance(java.lang.String syndrome)
          Create an instance of the fits generator for a given syndrome.
 double[] getErrors(java.lang.String inputFilename, int column)
           
 double getErrorStandardDeviation()
           
 double[] getFits(java.lang.String inputFilename, int column)
           
 double[] getPage(double[] errvec)
           
 double getStddev(double[] vec)
           
 java.util.Calendar getT0Date()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MILLISECONDS_IN_DAY

public static final double MILLISECONDS_IN_DAY
See Also:
Constant Field Values

DAYS_IN_YEAR

public static final double DAYS_IN_YEAR
See Also:
Constant Field Values

PAGE_K

public static final double PAGE_K
See Also:
Constant Field Values
Constructor Detail

GetFits

public GetFits(double[] coefficients,
               java.lang.String t0Date,
               double errStdDev)
Method Detail

createInstance

public static gov.lanl.Analysis.category.GetFits createInstance(java.lang.String syndrome)
Create an instance of the fits generator for a given syndrome.


calcFits

public double calcFits(java.util.Calendar day)

calcUCL

public double calcUCL(double fit)
Calculate the upper control limit for the given daily fit.


getPage

public double[] getPage(double[] errvec)

getErrors

public double[] getErrors(java.lang.String inputFilename,
                          int column)

getStddev

public double getStddev(double[] vec)

getT0Date

public java.util.Calendar getT0Date()

getErrorStandardDeviation

public double getErrorStandardDeviation()

getFits

public double[] getFits(java.lang.String inputFilename,
                        int column)

main

public static void main(java.lang.String[] args)