|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.stat.LinReg
public class LinReg
A linear regression analysis.
Constructor Summary | |
---|---|
LinReg(double[] aX,
double[] aY)
Constructor for regression calculations |
|
LinReg(P1D aXY)
constructor for regression calculations. |
Method Summary | |
---|---|
void |
addPoint(double xValue,
double yValue)
Add a point to the data and redo the regression |
void |
doc()
Show online documentation. |
P1D[] |
getConfidence()
Get confidence intervals for means |
P1D[] |
getConfidence(java.awt.Color color)
Get confidence intervals for means |
P1D |
getConfidenceBand(java.awt.Color color,
double transparency)
Calculate confidence band in form of P1D with errors. |
P1D |
getConfidenceBand(int Npoints,
java.awt.Color color,
double transparency)
Calculate confidence band in form of P1D with errors. |
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 |
P1D[] |
getPrediction(java.awt.Color color)
Get prediction lines |
P1D |
getPredictionBand(java.awt.Color color,
double transparency)
Calculate the prediction band in form of P1D with errors. |
P1D |
getPredictionBand(int Npoints,
java.awt.Color color,
double transparency)
Calculate the prediction band in form of P1D with errors. |
P1D |
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 LinReg(double[] aX, double[] aY)
aX
- is the array of x dataaY
- is the array of y datapublic LinReg(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 P1D 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[] getConfidence(java.awt.Color color)
color
- color used to draw
public P1D[] getPrediction()
public P1D[] getPrediction(java.awt.Color color)
color
- color used to draw
public P1D getConfidenceBand(java.awt.Color color, double transparency)
color
- Color used to show the bandtransparancy
- level of color transparency (between 0 and 1)
public P1D getConfidenceBand(int Npoints, java.awt.Color color, double transparency)
Npoints
- number of points to display the bandcolor
- Color used to show the bandtransparancy
- level of color transparency (between 0 and 1)
public P1D getPredictionBand(java.awt.Color color, double transparency)
color
- Color used to show the bandtransparancy
- level of color transparency (between 0 and 1)
public P1D getPredictionBand(int Npoints, java.awt.Color color, double transparency)
Npoints
- number of points for evaluationcolor
- Color used to show the bandtransparancy
- level of color transparency (between 0 and 1)
public void doc()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |