casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Static Public Member Functions | Static Private Member Functions | List of all members
casa::CalStatsFitter Class Reference


Start of CalStatsFitter class definition

More...

#include <CalStatsFitter.h>

Classes

class  FIT
 FIT nested class. More...
 

Public Types

enum  ORDER {
  ORDER_INIT,
  AVERAGE,
  LINEAR,
  QUADRATIC
}
 Order enums. More...
 
enum  TYPE {
  TYPE_INIT,
  LSQ,
  ROBUST
}
 Type enums. More...
 
enum  WEIGHT {
  WEIGHT_INIT,
  NO,
  YES
}
 Weight enums. More...
 
typedef enum
casa::CalStatsFitter::ORDER 
ORDER
 Order enums. More...
 
typedef enum
casa::CalStatsFitter::TYPE 
TYPE
 Type enums. More...
 
typedef enum
casa::CalStatsFitter::WEIGHT 
WEIGHT
 Weight enums. More...
 

Static Public Member Functions

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. More...
 
static casacore::String orderName (const ORDER &eOrder)
 The enum names. More...
 
static casacore::String typeName (const TYPE &eOrder)
 
static casacore::String weightName (const WEIGHT &eOrder)
 

Static Private Member Functions

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. More...
 
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. More...
 
static casacore::Doubleslope (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. More...
 
static casacore::DoublebrackFunc (const casacore::Vector< casacore::Double > &oAbs, const casacore::Vector< casacore::Double > &oValue, const casacore::Double &dSlope)
 
static casacore::Doublesignum (const casacore::Double &dValue)
 Signum functions (also required to calculate a robust linear fit) More...
 
static casacore::Vector
< casacore::Double > & 
signum (const casacore::Vector< casacore::Double > &oValue)
 
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 More...
 

Detailed Description


Start of CalStatsFitter class definition


Definition at line 131 of file CalStatsFitter.h.

Member Typedef Documentation

Order enums.

Type enums.

Weight enums.

Member Enumeration Documentation

Order enums.

Enumerator
ORDER_INIT 
AVERAGE 
LINEAR 
QUADRATIC 

Definition at line 136 of file CalStatsFitter.h.

Type enums.

Enumerator
TYPE_INIT 
LSQ 
ROBUST 

Definition at line 141 of file CalStatsFitter.h.

Weight enums.

Enumerator
WEIGHT_INIT 
NO 
YES 

Definition at line 146 of file CalStatsFitter.h.

Member Function Documentation

static casacore::Double& casa::CalStatsFitter::brackFunc ( const casacore::Vector< casacore::Double > &  oAbs,
const casacore::Vector< casacore::Double > &  oValue,
const casacore::Double dSlope 
)
staticprivate
static FIT casa::CalStatsFitter::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 
)
static

User interface to all fitting capabilities.

static FIT casa::CalStatsFitter::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 
)
staticprivate

Least-squares fitting function.

static casacore::String casa::CalStatsFitter::orderName ( const ORDER eOrder)
static

The enum names.

static FIT casa::CalStatsFitter::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 
)
staticprivate

Robust fitting function.

static casacore::Double& casa::CalStatsFitter::signum ( const casacore::Double dValue)
staticprivate

Signum functions (also required to calculate a robust linear fit)

static casacore::Vector<casacore::Double>& casa::CalStatsFitter::signum ( const casacore::Vector< casacore::Double > &  oValue)
staticprivate
static casacore::Double& casa::CalStatsFitter::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 
)
staticprivate

Functions required to calculate a robust linear fit.

static void casa::CalStatsFitter::theil ( const casacore::Vector< casacore::Double > &  oAbs,
const casacore::Vector< casacore::Double > &  oValue,
casacore::Double dSlope,
casacore::Double dSlopeErr 
)
staticprivate

casacore::Function for calculating slope estimate using Theil's method

static casacore::String casa::CalStatsFitter::typeName ( const TYPE eOrder)
static
static casacore::String casa::CalStatsFitter::weightName ( const WEIGHT eOrder)
static

The documentation for this class was generated from the following file: