public class LinFit
extends java.lang.Object
Constructor and Description |
---|
LinFit(QDataSet x,
QDataSet y)
do fit with uniform weights or weight=0 where fill is found.
|
LinFit(QDataSet x,
QDataSet y,
QDataSet sig)
do fit with weights.
|
Modifier and Type | Method and Description |
---|---|
double |
getA()
return the result A, the intercept, of the fit y = A + B * x
|
double |
getB()
return the result B, the slope, of the fit y = A + B * x
|
double |
getChi2()
return the Chi-Squared result from the fit.
|
Datum |
getIntercept()
return the intercept (A of linear fit equation) as a datum with units of y.
|
double |
getQ() |
double |
getSiga() |
double |
getSigb() |
Datum |
getSlope()
return the slope (B of linear fit equation) as a datum with units of Yunits/Xunits.
|
public LinFit(QDataSet x, QDataSet y)
x
- the x datay
- the y datapublic double getA()
public double getB()
public Datum getSlope()
public Datum getIntercept()
public double getChi2()
public double getQ()
public double getSiga()
public double getSigb()