public class LinearRegression
extends java.lang.Object
Constructor and Description |
---|
LinearRegression() |
Modifier and Type | Method and Description |
---|---|
void |
add(double X,
double Y)
Add the given numbers to the summation and squares summation for mean and squares summation.
|
double |
getBeta0()
Returns the regression intercept (Beta0)
|
double |
getBeta1()
Returns the regression Slope (Beta1)
|
double |
getCorrelation()
Returns the correlation value R.
|
double |
getErrorSumOfSquares()
Returns the sum of squared errors (SSe)
|
double |
getErrorVariance()
Returns the variance error (sigma^2)
|
double |
getF0()
Returns the statistical F0.
|
double |
getIntercept()
Returns the regression intercept (Beta0)
|
int |
getN()
Returns the number of samples.
|
double |
getR()
Returns the correlation value R.
|
double |
getSeBeta0()
Returns the Standard errors intercept - Se(beta0)
|
double |
getSeBeta1()
Returns the Standard errors slope - Se(beta1)
|
double |
getSigmaSq()
Returns the variance error (sigma^2)
|
double |
getSlope()
Returns the regression Slope (Beta1)
|
double |
getSSe()
Returns the sum of squared errors (SSe)
|
double |
getSSr()
Returns the sum of squares due to regression (SSr)
|
double |
getStdErrorIntercept()
Returns the Standard errors intercept - Se(beta0)
|
double |
getStdErrorSlope()
Returns the Standard errors slope - Se(beta1)
|
double |
getSxx()
Returns the statistical Sxx.
|
double |
getSxy()
Returns the statistical Sxy.
|
double |
getSyy()
Returns the statistical Syy.
|
double |
getT0()
Returns the statistical T0.
|
double |
getX()
Returns the summation of X samples values.
|
double |
getXavg()
Returns the X values mean
|
double |
getXX()
Returns the summation of the X samples squares.
|
double |
getXXavg()
Returns the mean of the X samples squares.
|
double |
getXY()
Returns the summation of the X-Y products.
|
double |
getXYavg()
Returns the mean of the X-Y products.
|
double |
getY()
Returns the summation of Y samples values.
|
double |
getYavg()
Returns the Y values mean
|
double |
getYY()
Returns the summation of the Y samples squares.
|
double |
getYYavg()
Returns the mean of the Y samples squares.
|
void |
reset()
Resets the statisticals variables.
|
public void add(double X, double Y)
X
- function x value given.Y
- function y value given.public void reset()
public int getN()
public double getX()
public double getY()
public double getXavg()
public double getYavg()
public double getXX()
public double getYY()
public double getXY()
public double getXXavg()
public double getYYavg()
public double getXYavg()
public double getSxx()
public double getSyy()
public double getSxy()
public double getBeta1()
public double getSlope()
public double getBeta0()
public double getIntercept()
public double getSSe()
public double getErrorSumOfSquares()
public double getSSr()
public double getSigmaSq()
public double getErrorVariance()
public double getSeBeta1()
public double getStdErrorSlope()
public double getSeBeta0()
public double getStdErrorIntercept()
public double getF0()
public double getR()
public double getCorrelation()
public double getT0()