#include <sfit.h>
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 | |
CSourceCalc * | sourcecalc |
CCHArray * | sourceCH |
C3DArray * | source3D |
CMCList * | lista |
CMCList * | listb |
CKernel * | kernel |
CKernelWF * | kernelwf |
CWaveFunction * | wf |
C3DArray * | cexp3D |
C3DArray * | cerror3D |
C3DArray * | ctheory3D |
CCHArray * | cexpCH |
CCHArray * | cerrorCH |
CCHArray * | ctheoryCH |
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 |
CRandom * | randy |
int | ncalls |
double ** | StepMatrix |
Static Protected Attributes | |
static bool | MCsourceflag = 0 |
static int | nmaxpars = 10 |
Definition at line 30 of file sfit.h.
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.
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.
bool CCF2SFit::dfn | ( | double * | x | ) | [virtual] |
void CCF2SFit::FixPar | ( | string | parname | ) |
Definition at line 127 of file scott_sfit.cc.
double CCF2SFit::fn | ( | double * | x | ) | [virtual] |
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.
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::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.
double CCF2SFit::bestchisquared [protected] |
int CCF2SFit::calcflag [protected] |
double CCF2SFit::currentchisquared [protected] |
double** CCF2SFit::ErrorMatrix [protected] |
int CCF2SFit::lx [protected] |
int CCF2SFit::ly [protected] |
int CCF2SFit::lz [protected] |
bool CCF2SFit::MCsourceflag = 0 [static, protected] |
int CCF2SFit::ncalls [protected] |
int CCF2SFit::nfreepars [protected] |
int CCF2SFit::nmaxpars = 10 [static, protected] |
int CCF2SFit::npars [protected] |
CParInfo** CCF2SFit::par [protected] |
CRandom* CCF2SFit::randy [protected] |
double** CCF2SFit::StepMatrix [protected] |