jhplot.stat
Class LinRegWeighted

java.lang.Object
  extended by jhplot.stat.LinRegWeighted

public class LinRegWeighted
extends java.lang.Object

Weighted Least Squares Regression


Constructor Summary
LinRegWeighted(double[] X, double[] Y, double[] W)
          Constructor for regression calculations
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinRegWeighted

public LinRegWeighted(double[] X,
                      double[] Y,
                      double[] W)
Constructor for regression calculations

Parameters:
X - is the array of x data
Y - is the array of y data
W - 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.



jHepWork 2.8 (©) S.Chekanov