CCF2SFit Class Reference

#include <sfit.h>

Inheritance diagram for CCF2SFit:
[legend]
Collaboration diagram for CCF2SFit:
[legend]

List of all members.

Public Member Functions

void SetCalcFlag (int calcflagset)
void SetMCSourceFlag (bool MCsourceflagset)
void SetPar (string parstring, double value)
void SetPar (string parstring, double value, double error, double xmin, double xmax)
double GetPar (string parstring)
void AddPar (string parstring, double value, double error, double xmin, double xmax)
void PrintPars ()
void PrintErrorMatrix ()
void PrintStepMatrix ()
void FixPar (string parname)
void FreePar (string parname)
void UseBestPars ()
void SetL (int lxset, int lyset, int lzset)
void ConjugateGradient (int maxcalls)
double fn (double *x)
bool dfn (double *x)
void Metropolis (int maxcalls)
void SteepestDescent (int maxtries)
void Newton (int maxtries)
void UpdateStepMatrix ()
void InitErrorMatrix ()
void ResetChiSquared ()
 CCF2SFit ()
 CCF2SFit (CCHArray *sourceCHset, C3DArray *source3Dset, CMCList *listaset, CMCList *listbset, CKernel *kernelset, CKernelWF *kernelwfset, CWaveFunction *wfset, C3DArray *cexp3Dset, C3DArray *cerror3Dset, C3DArray *ctheory3Dset, CCHArray *cexpCHset, CCHArray *cerrorCHset, CCHArray *ctheoryCHset)
 ~CCF2SFit ()

Public Attributes

CSourceCalcsourcecalc
CCHArraysourceCH
C3DArraysource3D
CMCListlista
CMCListlistb
CKernelkernel
CKernelWFkernelwf
CWaveFunctionwf
C3DArraycexp3D
C3DArraycerror3D
C3DArrayctheory3D
CCHArraycexpCH
CCHArraycerrorCH
CCHArrayctheoryCH

Protected Member Functions

void SwitchPars (int ipara, int iparb)
void SwitchValues (double *a, double *b)
void Init ()
double GetChiSquared (double *x)
void CalcErrorMatrixFromCurvature (double **C)

Protected Attributes

int calcflag
CParInfo ** par
int nfreepars
int npars
double ** ErrorMatrix
double currentchisquared
double bestchisquared
int lx
int ly
int lz
CRandomrandy
int ncalls
double ** StepMatrix

Static Protected Attributes

static bool MCsourceflag = 0
static int nmaxpars = 10


Detailed Description

Definition at line 30 of file sfit.h.


Constructor & Destructor Documentation

CCF2SFit::CCF2SFit (  ) 

Definition at line 244 of file scott_sfit.cc.

CCF2SFit::CCF2SFit ( CCHArray sourceCHset,
C3DArray source3Dset,
CMCList listaset,
CMCList listbset,
CKernel kernelset,
CKernelWF kernelwfset,
CWaveFunction wfset,
C3DArray cexp3Dset,
C3DArray cerror3Dset,
C3DArray ctheory3Dset,
CCHArray cexpCHset,
CCHArray cerrorCHset,
CCHArray ctheoryCHset 
)

Definition at line 261 of file scott_sfit.cc.

CCF2SFit::~CCF2SFit (  ) 

Definition at line 285 of file scott_sfit.cc.


Member Function Documentation

void CCF2SFit::AddPar ( string  parstring,
double  value,
double  error,
double  xmin,
double  xmax 
)

Definition at line 58 of file scott_sfit.cc.

void CCF2SFit::CalcErrorMatrixFromCurvature ( double **  C  )  [protected]

Definition at line 464 of file scott_sfit.cc.

void CCF2SFit::ConjugateGradient ( int  maxcalls  ) 

Definition at line 584 of file sfit.cc.

bool CCF2SFit::dfn ( double *  x  )  [virtual]

Implements CMinimization.

Definition at line 617 of file sfit.cc.

void CCF2SFit::FixPar ( string  parname  ) 

Definition at line 127 of file scott_sfit.cc.

double CCF2SFit::fn ( double *  x  )  [virtual]

Implements CMinimization.

Definition at line 612 of file sfit.cc.

void CCF2SFit::FreePar ( string  parname  ) 

Definition at line 109 of file scott_sfit.cc.

double CCF2SFit::GetChiSquared ( double *  x  )  [protected]

Definition at line 297 of file scott_sfit.cc.

double CCF2SFit::GetPar ( string  parstring  ) 

Definition at line 50 of file sfit.cc.

void CCF2SFit::Init (  )  [protected]

Definition at line 156 of file scott_sfit.cc.

void CCF2SFit::InitErrorMatrix (  ) 

Definition at line 181 of file scott_sfit.cc.

void CCF2SFit::Metropolis ( int  maxcalls  ) 

Definition at line 495 of file scott_sfit.cc.

void CCF2SFit::Newton ( int  maxtries  ) 

Definition at line 340 of file scott_sfit.cc.

void CCF2SFit::PrintErrorMatrix (  ) 

Definition at line 224 of file scott_sfit.cc.

void CCF2SFit::PrintPars (  ) 

Definition at line 146 of file scott_sfit.cc.

void CCF2SFit::PrintStepMatrix (  ) 

Definition at line 234 of file scott_sfit.cc.

void CCF2SFit::ResetChiSquared (  ) 

Definition at line 201 of file sfit.cc.

void CCF2SFit::SetCalcFlag ( int  calcflagset  ) 

Definition at line 23 of file scott_sfit.cc.

void CCF2SFit::SetL ( int  lxset,
int  lyset,
int  lzset 
)

Definition at line 81 of file scott_sfit.cc.

void CCF2SFit::SetMCSourceFlag ( bool  MCsourceflagset  ) 

Definition at line 27 of file scott_sfit.cc.

void CCF2SFit::SetPar ( string  parstring,
double  value,
double  error,
double  xmin,
double  xmax 
)

Definition at line 44 of file scott_sfit.cc.

void CCF2SFit::SetPar ( string  parstring,
double  value 
)

Definition at line 31 of file scott_sfit.cc.

void CCF2SFit::SteepestDescent ( int  maxtries  ) 

Definition at line 568 of file scott_sfit.cc.

void CCF2SFit::SwitchPars ( int  ipara,
int  iparb 
) [protected]

Definition at line 87 of file scott_sfit.cc.

void CCF2SFit::SwitchValues ( double *  a,
double *  b 
) [protected]

Definition at line 102 of file scott_sfit.cc.

void CCF2SFit::UpdateStepMatrix (  ) 

Definition at line 196 of file scott_sfit.cc.

void CCF2SFit::UseBestPars (  ) 

Definition at line 75 of file scott_sfit.cc.


Member Data Documentation

double CCF2SFit::bestchisquared [protected]

Definition at line 112 of file sfit.h.

int CCF2SFit::calcflag [protected]

Definition at line 104 of file sfit.h.

Definition at line 84 of file sfit.h.

Definition at line 87 of file sfit.h.

Definition at line 83 of file sfit.h.

Definition at line 86 of file sfit.h.

Definition at line 85 of file sfit.h.

Definition at line 88 of file sfit.h.

double CCF2SFit::currentchisquared [protected]

Definition at line 112 of file sfit.h.

double** CCF2SFit::ErrorMatrix [protected]

Definition at line 111 of file sfit.h.

Definition at line 78 of file sfit.h.

Definition at line 79 of file sfit.h.

Definition at line 74 of file sfit.h.

Definition at line 75 of file sfit.h.

int CCF2SFit::lx [protected]

Definition at line 114 of file sfit.h.

int CCF2SFit::ly [protected]

Definition at line 114 of file sfit.h.

int CCF2SFit::lz [protected]

Definition at line 114 of file sfit.h.

bool CCF2SFit::MCsourceflag = 0 [static, protected]

Definition at line 105 of file sfit.h.

int CCF2SFit::ncalls [protected]

Definition at line 121 of file sfit.h.

int CCF2SFit::nfreepars [protected]

Definition at line 110 of file sfit.h.

int CCF2SFit::nmaxpars = 10 [static, protected]

Definition at line 109 of file sfit.h.

int CCF2SFit::npars [protected]

Definition at line 110 of file sfit.h.

CParInfo** CCF2SFit::par [protected]

Definition at line 108 of file sfit.h.

CRandom* CCF2SFit::randy [protected]

Definition at line 117 of file sfit.h.

Definition at line 73 of file sfit.h.

Definition at line 68 of file sfit.h.

Definition at line 72 of file sfit.h.

double** CCF2SFit::StepMatrix [protected]

Definition at line 122 of file sfit.h.

Definition at line 80 of file sfit.h.


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

Generated on Fri Feb 6 13:30:17 2009 for CorAL by  doxygen 1.5.8