jhplot.stat
Class LinRegWeighted
- java.lang.Object
-
- jhplot.stat.LinRegWeighted
-
public class LinRegWeighted extends java.lang.ObjectWeighted 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 voiddoc()Show online documentation.doublegetChi2()Get chi2intgetDataLength()Get the size of the input datadouble[]getDataX()Get an array with X datadouble[]getDataY()Get an array with Y datadoublegetIntercept()Get InterceptdoublegetInterceptError()Get the standard error on interceptdoublegetMaxX()Get a maximum value for XdoublegetMaxY()Get maximum value in YdoublegetMinX()Get a minimum value for XdoublegetMinY()Get minimum value for YF1DgetResult()Get the fit resultsdoublegetSlope()Get slopedoublegetSlopeError()Get the standard error on slopedoublegetXBar()Get average xdoublegetYBar()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