casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
casa::denoising::GslMultifitLinearBase Class Reference

#include <DenoisingLib.h>

Inheritance diagram for casa::denoising::GslMultifitLinearBase:
casa::denoising::GslMultifitWeightedLinear casa::denoising::IterativelyReweightedLeastSquares

Public Member Functions

 GslMultifitLinearBase ()
 
 GslMultifitLinearBase (GslLinearModelBase< Double > &model)
 
 ~GslMultifitLinearBase ()
 
void resetModel (GslLinearModelBase< Double > &model)
 
void resetNComponents (size_t ncomponents)
 
void setDebug (Bool debug)
 
Vector< Complex > calcFitCoeff (Vector< Complex > &data)
 
template<class T >
Vector< T > calcFitCoeff (Vector< T > &data)
 
void getFitCoeff (Vector< Complex > &coeff)
 
template<class T >
void getFitCoeff (Vector< T > &coeff)
 
void calcFitModelStd (Vector< Complex > &model, Vector< Complex > &std)
 
template<class T >
void calcFitModelStd (Vector< T > &model, Vector< T > &std)
 
void calcFitModel (Vector< Complex > &model)
 
template<class T >
void calcFitModel (Vector< T > &model)
 

Protected Member Functions

void allocGslResources ()
 
void freeGslResources ()
 
virtual void setModel (GslLinearModelBase< Double > &model)
 
void setData (Vector< Float > &data)
 
void setData (Vector< Double > &data)
 
void setData (Vector< Complex > &data)
 
virtual void calcFitCoeffCore (Vector< Double > data, gsl_vector *coeff)
 
template<class T >
void calcFitModelStdCore (Vector< T > &model, Vector< T > &std, gsl_vector *coeff)
 
template<class T >
void calcFitModelCore (Vector< T > &model, gsl_vector *coeff)
 

Protected Attributes

size_t ndata_p
 Model. More...
 
size_t ncomponents_p
 
size_t max_ncomponents_p
 
gsl_matrix gsl_model_p
 
GslLinearModelBase< Double > * model_p
 
gsl_vector * gsl_coeff_real_p
 GSL Resources. More...
 
gsl_vector * gsl_coeff_imag_p
 
gsl_matrix * gsl_covariance_p
 
gsl_multifit_linear_workspace * gsl_workspace_p
 
Matrix< Doubledata_p
 Data. More...
 
int errno_p
 Fit result. More...
 
double chisq_p
 
Bool debug_p
 Misc. More...
 

Detailed Description

Definition at line 154 of file DenoisingLib.h.

Constructor & Destructor Documentation

casa::denoising::GslMultifitLinearBase::GslMultifitLinearBase ( )
casa::denoising::GslMultifitLinearBase::GslMultifitLinearBase ( GslLinearModelBase< Double > &  model)
casa::denoising::GslMultifitLinearBase::~GslMultifitLinearBase ( )

Member Function Documentation

void casa::denoising::GslMultifitLinearBase::allocGslResources ( )
protected
Vector<Complex> casa::denoising::GslMultifitLinearBase::calcFitCoeff ( Vector< Complex > &  data)
template<class T >
Vector<T> casa::denoising::GslMultifitLinearBase::calcFitCoeff ( Vector< T > &  data)
inline

Set data

Call fit method to calculate coefficients

Convert GSL vector into CASA vector

Definition at line 174 of file DenoisingLib.h.

virtual void casa::denoising::GslMultifitLinearBase::calcFitCoeffCore ( Vector< Double data,
gsl_vector *  coeff 
)
protectedvirtual
void casa::denoising::GslMultifitLinearBase::calcFitModel ( Vector< Complex > &  model)
template<class T >
void casa::denoising::GslMultifitLinearBase::calcFitModel ( Vector< T > &  model)
inline

Definition at line 213 of file DenoisingLib.h.

template<class T >
void casa::denoising::GslMultifitLinearBase::calcFitModelCore ( Vector< T > &  model,
gsl_vector *  coeff 
)
inlineprotected

Definition at line 256 of file DenoisingLib.h.

void casa::denoising::GslMultifitLinearBase::calcFitModelStd ( Vector< Complex > &  model,
Vector< Complex > &  std 
)
template<class T >
void casa::denoising::GslMultifitLinearBase::calcFitModelStd ( Vector< T > &  model,
Vector< T > &  std 
)
inline

Definition at line 205 of file DenoisingLib.h.

template<class T >
void casa::denoising::GslMultifitLinearBase::calcFitModelStdCore ( Vector< T > &  model,
Vector< T > &  std,
gsl_vector *  coeff 
)
inlineprotected
void casa::denoising::GslMultifitLinearBase::freeGslResources ( )
protected
void casa::denoising::GslMultifitLinearBase::getFitCoeff ( Vector< Complex > &  coeff)
template<class T >
void casa::denoising::GslMultifitLinearBase::getFitCoeff ( Vector< T > &  coeff)
inline

Definition at line 193 of file DenoisingLib.h.

References casacore::False, and casacore::Vector< T >::resize().

void casa::denoising::GslMultifitLinearBase::resetModel ( GslLinearModelBase< Double > &  model)
void casa::denoising::GslMultifitLinearBase::resetNComponents ( size_t  ncomponents)
void casa::denoising::GslMultifitLinearBase::setData ( Vector< Float > &  data)
protected
void casa::denoising::GslMultifitLinearBase::setData ( Vector< Double > &  data)
protected
void casa::denoising::GslMultifitLinearBase::setData ( Vector< Complex > &  data)
protected
void casa::denoising::GslMultifitLinearBase::setDebug ( Bool  debug)
inline

Definition at line 171 of file DenoisingLib.h.

References debug.

virtual void casa::denoising::GslMultifitLinearBase::setModel ( GslLinearModelBase< Double > &  model)
protectedvirtual

Member Data Documentation

double casa::denoising::GslMultifitLinearBase::chisq_p
protected

Definition at line 297 of file DenoisingLib.h.

Matrix<Double> casa::denoising::GslMultifitLinearBase::data_p
protected

Data.

Definition at line 293 of file DenoisingLib.h.

Bool casa::denoising::GslMultifitLinearBase::debug_p
protected

Misc.

Definition at line 300 of file DenoisingLib.h.

int casa::denoising::GslMultifitLinearBase::errno_p
protected

Fit result.

Definition at line 296 of file DenoisingLib.h.

gsl_vector* casa::denoising::GslMultifitLinearBase::gsl_coeff_imag_p
protected

Definition at line 288 of file DenoisingLib.h.

gsl_vector* casa::denoising::GslMultifitLinearBase::gsl_coeff_real_p
protected

GSL Resources.

Definition at line 287 of file DenoisingLib.h.

gsl_matrix* casa::denoising::GslMultifitLinearBase::gsl_covariance_p
protected

Definition at line 289 of file DenoisingLib.h.

gsl_matrix casa::denoising::GslMultifitLinearBase::gsl_model_p
protected

Definition at line 283 of file DenoisingLib.h.

gsl_multifit_linear_workspace* casa::denoising::GslMultifitLinearBase::gsl_workspace_p
protected

Definition at line 290 of file DenoisingLib.h.

size_t casa::denoising::GslMultifitLinearBase::max_ncomponents_p
protected

Definition at line 282 of file DenoisingLib.h.

GslLinearModelBase<Double>* casa::denoising::GslMultifitLinearBase::model_p
protected

Definition at line 284 of file DenoisingLib.h.

size_t casa::denoising::GslMultifitLinearBase::ncomponents_p
protected

Definition at line 281 of file DenoisingLib.h.

size_t casa::denoising::GslMultifitLinearBase::ndata_p
protected

Model.

Definition at line 280 of file DenoisingLib.h.


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