org.das2.qds.util.LinFit

Linear Fit routine. This will allow errors on the Y values, and will report chi squared. Borrowed from pamguard, https://sourceforge.net/projects/pamguard/.


getA

getA( ) → double

return the result A of the fit y = A + B * x

Returns:

the result A of the fit y = A + B * x

search for examples view on GitHub view source


getB

getB( ) → double

return the result B of the fit y = A + B * x

Returns:

the result B of the fit y = A + B * x

search for examples view on GitHub view source


getChi2

getChi2( ) → double

return Chi-Squared result from the fit.

Returns:

double

search for examples view on GitHub view source


getIntercept

getIntercept( ) → Datum

return the intercept as a datum with units of y.

Returns:

org.das2.datum.Datum

search for examples view on GitHub view source


getQ

getQ( ) → double

Returns:

double

search for examples view on GitHub view source


getSiga

getSiga( ) → double

Returns:

double

search for examples view on GitHub view source


getSigb

getSigb( ) → double

Returns:

double

search for examples view on GitHub view source


getSlope

getSlope( ) → Datum

return the slope as a datum with units of Yunits/Xunits. Note the current version of the library is unable to do many unit calculations.

Returns:

org.das2.datum.Datum

search for examples view on GitHub view source