jhplot.stat
Class LinRegWeighted
- java.lang.Object
-
- jhplot.stat.LinRegWeighted
-
public class LinRegWeighted extends java.lang.Object
Weighted Least Squares Regression
-
-
Constructor Summary
Constructors Constructor and Description LinRegWeighted(double[] X, double[] Y, double[] W)
Constructor for regression calculations
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
doc()
Show online documentation.double
getChi2()
Get chi2int
getDataLength()
Get the size of the input datadouble[]
getDataX()
Get an array with X datadouble[]
getDataY()
Get an array with Y datadouble
getIntercept()
Get Interceptdouble
getInterceptError()
Get the standard error on interceptdouble
getMaxX()
Get a maximum value for Xdouble
getMaxY()
Get maximum value in Ydouble
getMinX()
Get a minimum value for Xdouble
getMinY()
Get minimum value for YF1D
getResult()
Get the fit resultsdouble
getSlope()
Get slopedouble
getSlopeError()
Get the standard error on slopedouble
getXBar()
Get average xdouble
getYBar()
Get average Y
-
-
-
Constructor Detail
-
LinRegWeighted
public LinRegWeighted(double[] X, double[] Y, double[] W)
Constructor for regression calculations- Parameters:
X
- is the array of x dataY
- is the array of y dataW
- weights of data points
-
-
Method Detail
-
getMinX
public double getMinX()
Get a minimum value for X- Returns:
- Minimum value
-
getMaxX
public double getMaxX()
Get a maximum value for X- Returns:
- Max value in X
-
getMinY
public double getMinY()
Get minimum value for Y- Returns:
- minimum Y value
-
getMaxY
public double getMaxY()
Get maximum value in Y- Returns:
- Maximum value in Y
-
getIntercept
public double getIntercept()
Get Intercept- Returns:
- Intercept
-
getInterceptError
public double getInterceptError()
Get the standard error on intercept- Returns:
- standard error on intercept
-
getSlopeError
public double getSlopeError()
Get the standard error on slope- Returns:
- standard error on slope
-
getSlope
public double getSlope()
Get slope- Returns:
- slope
-
getDataX
public double[] getDataX()
Get an array with X data- Returns:
- array with X data
-
getDataY
public double[] getDataY()
Get an array with Y data- Returns:
- array with Y data
-
getXBar
public double getXBar()
Get average x- Returns:
- average X
-
getYBar
public double getYBar()
Get average Y- Returns:
- average Y
-
getDataLength
public int getDataLength()
Get the size of the input data- Returns:
- size of data array
-
getChi2
public double getChi2()
Get chi2- Returns:
-
getResult
public F1D getResult()
Get the fit results- Returns:
-
doc
public void doc()
Show online documentation.
-
-
DMelt 3.0 © DataMelt by jWork.ORG