Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
optimize_func.cpp File Reference
#include "cddefines.h"
#include "init.h"
#include "lines.h"
#include "called.h"
#include "predcont.h"
#include "radius.h"
#include "rfield.h"
#include "input.h"
#include "cloudy.h"
#include "cddrive.h"
#include "grid.h"
#include "flux.h"
Include dependency graph for optimize_func.cpp:

Functions

STATIC double chi2_func (double, double, double)
 
chi2_type optimize_func (const realnum param[], int grid_index)
 

Function Documentation

STATIC chi2_type chi2_func ( double  ymodl,
double  ymeas,
double  yerr 
)

References BIG_CHI2, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, min(), and pow2().

Referenced by optimize_func().

Here is the call graph for this function:

chi2_type optimize_func ( const realnum  param[],
int  grid_index = -1 
)

optimize_func actual function called during evaluation of optimization run

References ASSERT, BIG_CHI2, called, cdColm(), cdEXIT, cdTemp(), cdWarnings(), t_optimize::chColDen_label, chi2_func(), t_optimize::chOptRtn, t_optimize::chTempLab, t_optimize::chTempWeight, cloudy(), t_optimize::ColDen_error, t_optimize::ColDen_Obs, t_optimize::ContEner, t_optimize::ContIndex, t_optimize::ContNFnu, t_optimize::ContNFnuErr, t_radius::Conv2PrtInten, t_input::crd, DEBUG_ENTRY, t_radius::distance, EXIT_FAILURE, exp10(), t_LineSave::findline(), fprintf(), grid, input, Singleton< T >::Inst(), t_optimize::ion_ColDen, t_optimize::ionTemp, ioQQQ, t_LineSave::ipNormWavL, t_optimize::ipobs, t_optimize::lgDiamInCM, t_grid::lgGrid, t_optimize::lgOptDiam, t_optimize::lgOptimFlow, t_optimize::lgOptimize, t_optimize::lgOptLum, t_called::lgTalk, t_rfield::lgUSphON, t_optimize::lineids, t_LineSave::lines, LineSave, MakeInputLine(), max(), min(), t_optimize::nEmergent, t_optimize::nOptimiz, t_optimize::nOptLum, t_optimize::nvary, t_optimize::nvfpnt, t_optimize::optDiam, t_optimize::optDiamErr, t_optimize::optier, optimize, t_optimize::optint, radius, t_radius::Radius, rfield, t_rfield::rstrom, t_optimize::SavGenericData, t_LineSave::ScaleNormLine, SMALLFLOAT, t_optimize::temp_error, t_optimize::temp_obs, t_optimize::varang, t_optimize::varmax, t_optimize::varmin, vary_input(), t_optimize::vparm, t_optimize::xLineInt_error, t_optimize::xLineInt_Obs, and zero().

Referenced by evalf(), gridXspec(), optimize_do(), and optimize_phymir().

Here is the call graph for this function: