edu.ucla.stat.SOCR.analyses.model
Class Regression
java.lang.Object
edu.ucla.stat.SOCR.analyses.model.Regression
public class Regression
- extends java.lang.Object
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 |
Regression
public Regression()
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)