|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.regression.LRegression
public class LRegression
Performe a linear regression analysis
Constructor Summary | |
---|---|
LRegression(double[] aX,
double[] aY)
constructor for regression calculations |
|
LRegression(P1D aXY)
constructor for regression calculations. |
Method Summary | |
---|---|
void |
addPoint(double xValue,
double yValue)
Add a point to the data and redo the regression |
P1D[] |
getConfidence()
Get confidence intervals for means |
double |
getCorrelation()
Get correlation coefficient |
int |
getDataLength()
Get the size of the input data |
double[] |
getDataX()
Get an array with X data |
double[] |
getDataY()
Get an array with Y data |
double |
getIntercept()
Get Intercept |
double |
getInterceptError()
Get the standard error on intercept |
double |
getMaxAbsoluteResidual()
Get max absolute residual |
double |
getMaxX()
Get a maximum value for X |
double |
getMaxY()
Get maximum value in Y |
double |
getMinX()
Get a minimum value for X |
double |
getMinY()
Get minimum value for Y |
double |
getMSE()
Get MSE value |
double |
getPearsonR()
Get pearson R |
P1D[] |
getPrediction()
Get prediction lines |
double[][] |
getResiduals()
Get residuals |
F1D |
getResult()
Get the linear regression result |
double |
getSlope()
Get slope |
double |
getSlopeError()
Get the standard error on slope |
double |
getSSE()
Get SSE value |
double |
getSSR()
Ger SSR value |
double |
getSumXSquared()
Get sun of the square |
double |
getSxx()
Get Sxx value: sumXsquared - sumX * sumX / n |
double |
getSyy()
Get SYY value: sumYsquared - sumY * sumY / n |
double |
getXBar()
Get average x |
double |
getYBar()
Get average Y |
void |
reset()
reset data to 0 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LRegression(double[] aX, double[] aY)
aX
- is the array of x dataaY
- is the array of y datapublic LRegression(P1D aXY)
aXY
- P1D container for X and Y valuesMethod Detail |
---|
public void reset()
public double getCorrelation()
public double getIntercept()
public double getInterceptError()
public double getSlopeError()
public double getSlope()
public double[][] getResiduals()
public double[] getDataX()
public double[] getDataY()
public void addPoint(double xValue, double yValue)
xValue
- X valueyValue
- Y valuepublic double getMinX()
public double getMaxX()
public double getMinY()
public double getMaxY()
public double getMaxAbsoluteResidual()
public double getSxx()
public double getSyy()
public double getSSR()
public double getSSE()
public double getMSE()
public double getXBar()
public double getYBar()
public int getDataLength()
public double getPearsonR()
public double getSumXSquared()
public F1D getResult()
public P1D[] getConfidence()
public P1D[] getPrediction()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |