public class LinRegWeighted extends Object
Constructor and Description |
---|
LinRegWeighted(double[] X,
double[] Y,
double[] W)
Constructor for regression calculations
|
Modifier and Type | Method and Description |
---|---|
void |
doc()
Show online documentation.
|
double |
getChi2()
Get chi2
|
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 |
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
|
F1D |
getResult()
Get the fit results
|
double |
getSlope()
Get slope
|
double |
getSlopeError()
Get the standard error on slope
|
double |
getXBar()
Get average x
|
double |
getYBar()
Get average Y
|
public LinRegWeighted(double[] X, double[] Y, double[] W)
X
- is the array of x dataY
- is the array of y dataW
- weights of data pointspublic double getMinX()
public double getMaxX()
public double getMinY()
public double getMaxY()
public double getIntercept()
public double getInterceptError()
public double getSlopeError()
public double getSlope()
public double[] getDataX()
public double[] getDataY()
public double getXBar()
public double getYBar()
public int getDataLength()
public double getChi2()
public F1D getResult()
public void doc()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics