edu.ucla.stat.SOCR.analyses.model
Class Regression

java.lang.Object
  extended by edu.ucla.stat.SOCR.analyses.model.Regression

public class Regression
extends java.lang.Object


Constructor Summary
Regression()
           
 
Method Summary
static double[] diff(double[] data)
           
static java.util.LinkedHashSet<java.lang.String> levelFactor(java.lang.String[] x)
           
static double mean(double[] data)
           
static double sampleCovariance(double[] dataX, double[] dataY)
           
static double sampleVariance(double[] data)
           
static double sumOfSquares(double[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Regression

public Regression()
Method Detail

mean

public static double mean(double[] data)
                   throws DataIsEmptyException
Throws:
DataIsEmptyException

diff

public static double[] diff(double[] data)
                     throws DataIsEmptyException
Throws:
DataIsEmptyException

sumOfSquares

public static double sumOfSquares(double[] data)
                           throws DataIsEmptyException
Throws:
DataIsEmptyException

sampleVariance

public static double sampleVariance(double[] data)
                             throws DataIsEmptyException
Throws:
DataIsEmptyException

sampleCovariance

public static double sampleCovariance(double[] dataX,
                                      double[] dataY)
                               throws DataIsEmptyException
Throws:
DataIsEmptyException

levelFactor

public static java.util.LinkedHashSet<java.lang.String> levelFactor(java.lang.String[] x)