30 #ifndef CAL_STATS_FITTER_H
31 #define CAL_STATS_FITTER_H
casacore::Matrix< casacore::Double > oCovars
casacore::Vector< casacore::Double > oPars
static casacore::Double & signum(const casacore::Double &dValue)
Signum functions (also required to calculate a robust linear fit)
static casacore::String weightName(const WEIGHT &eOrder)
casacore::Double dRedChi2
casacore::Double dResMean
FIT & operator=(const FIT &oFit)
casacore::Vector< casacore::Double > oRes
static casacore::String orderName(const ORDER &eOrder)
The enum names.
static FIT fit(const casacore::Vector< casacore::Double > &oAbs, const casacore::Vector< casacore::Double > &oValue, const casacore::Vector< casacore::Double > &oValueErr, casacore::Vector< casacore::Bool > &oFlag, const ORDER &eOrder, const TYPE &eType, const WEIGHT &eWeight)
User interface to all fitting capabilities.
static casacore::Double & slope(const casacore::Vector< casacore::Double > &oAbs, const casacore::Vector< casacore::Double > &oValue, const casacore::Double &dSlope, const casacore::Double &dSlopeErr, const casacore::Double &dFudge, const casacore::uInt &uiNumSlope, const casacore::uInt &uiNumIter)
Functions required to calculate a robust linear fit.
static casacore::Double & brackFunc(const casacore::Vector< casacore::Double > &oAbs, const casacore::Vector< casacore::Double > &oValue, const casacore::Double &dSlope)
bool Bool
Define the standard types used by Casacore.
static FIT robustFit(const casacore::Vector< casacore::Double > &oAbs, const casacore::Vector< casacore::Double > &oValue, const casacore::Vector< casacore::Double > &oValueErr, casacore::Vector< casacore::Bool > &oFlag, const ORDER &eOrder, const WEIGHT &eWeight, const casacore::Double &dTrim)
Robust fitting function.
casacore::Vector< casacore::Double > oModel
static casacore::String typeName(const TYPE &eOrder)
Start of CalStatsFitter class definition
String: the storage and methods of handling collections of characters.
static FIT lsqFit(const casacore::Vector< casacore::Double > &oAbs, const casacore::Vector< casacore::Double > &oValue, const casacore::Vector< casacore::Double > &oValueErr, casacore::Vector< casacore::Bool > &oFlag, const ORDER &eOrder, const WEIGHT &eWeight)
Least-squares fitting function.
static void theil(const casacore::Vector< casacore::Double > &oAbs, const casacore::Vector< casacore::Double > &oValue, casacore::Double &dSlope, casacore::Double &dSlopeErr)
casacore::Function for calculating slope estimate using Theil's method