casa::CalStatsFitter Class Reference

----------------------------------------------------------------------------- Start of CalStatsFitter class definition ----------------------------------------------------------------------------- More...

#include <CalStatsFitter.h>

List of all members.

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.
typedef enum
casa::CalStatsFitter::TYPE 
TYPE
 Type enums.
typedef enum
casa::CalStatsFitter::WEIGHT 
WEIGHT
 Weight enums.

Static Public Member Functions

static FITfit (const Vector< Double > &oAbs, const Vector< Double > &oValue, const Vector< Double > &oValueErr, Vector< Bool > &oFlag, const ORDER &eOrder, const TYPE &eType, const WEIGHT &eWeight)
 User interface to all fitting capabilities.
static String & orderName (const ORDER &eOrder)
 The enum names.
static String & typeName (const TYPE &eOrder)
static String & weightName (const WEIGHT &eOrder)

Static Private Member Functions

static FITlsqFit (const Vector< Double > &oAbs, const Vector< Double > &oValue, const Vector< Double > &oValueErr, Vector< Bool > &oFlag, const ORDER &eOrder, const WEIGHT &eWeight)
 Least-squares fitting function.
static FITrobustFit (const Vector< Double > &oAbs, const Vector< Double > &oValue, const Vector< Double > &oValueErr, Vector< Bool > &oFlag, const ORDER &eOrder, const WEIGHT &eWeight, const Double &dTrim)
 Robust fitting function.
static Double & slope (const Vector< Double > &oAbs, const Vector< Double > &oValue, const Double &dSlope, const Double &dSlopeErr, const Double &dFudge, const uInt &uiNumSlope, const uInt &uiNumIter)
 Functions required to calculate a robust linear fit.
static Double & brackFunc (const Vector< Double > &oAbs, const Vector< Double > &oValue, const Double &dSlope)
static Double & signum (const Double &dValue)
 Signum functions (also required to calculate a robust linear fit).
static Vector< Double > & signum (const Vector< Double > &oValue)
static void theil (const Vector< Double > &oAbs, const Vector< Double > &oValue, Double &dSlope, Double &dSlopeErr)
 Function for calculating slope estimate using Theil's method.

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 Double& casa::CalStatsFitter::brackFunc ( const Vector< Double > &  oAbs,
const Vector< Double > &  oValue,
const Double &  dSlope 
) [static, private]
static FIT& casa::CalStatsFitter::fit ( const Vector< Double > &  oAbs,
const Vector< Double > &  oValue,
const Vector< Double > &  oValueErr,
Vector< Bool > &  oFlag,
const ORDER eOrder,
const TYPE eType,
const WEIGHT eWeight 
) [static]

User interface to all fitting capabilities.

static FIT& casa::CalStatsFitter::lsqFit ( const Vector< Double > &  oAbs,
const Vector< Double > &  oValue,
const Vector< Double > &  oValueErr,
Vector< Bool > &  oFlag,
const ORDER eOrder,
const WEIGHT eWeight 
) [static, private]

Least-squares fitting function.

static String& casa::CalStatsFitter::orderName ( const ORDER eOrder  )  [static]

The enum names.

static FIT& casa::CalStatsFitter::robustFit ( const Vector< Double > &  oAbs,
const Vector< Double > &  oValue,
const Vector< Double > &  oValueErr,
Vector< Bool > &  oFlag,
const ORDER eOrder,
const WEIGHT eWeight,
const Double &  dTrim 
) [static, private]

Robust fitting function.

static Vector<Double>& casa::CalStatsFitter::signum ( const Vector< Double > &  oValue  )  [static, private]
static Double& casa::CalStatsFitter::signum ( const Double &  dValue  )  [static, private]

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

static Double& casa::CalStatsFitter::slope ( const Vector< Double > &  oAbs,
const Vector< Double > &  oValue,
const Double &  dSlope,
const Double &  dSlopeErr,
const Double &  dFudge,
const uInt &  uiNumSlope,
const uInt &  uiNumIter 
) [static, private]

Functions required to calculate a robust linear fit.

static void casa::CalStatsFitter::theil ( const Vector< Double > &  oAbs,
const Vector< Double > &  oValue,
Double &  dSlope,
Double &  dSlopeErr 
) [static, private]

Function for calculating slope estimate using Theil's method.

static String& casa::CalStatsFitter::typeName ( const TYPE eOrder  )  [static]
static String& casa::CalStatsFitter::weightName ( const WEIGHT eOrder  )  [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1