|
Manticore
Version 1.5.3
Physics of Molecular Clouds
|
Ceres solver graybody cost model. More...


Public Member Functions | |
| Fcost_gray (const GrayData &gd) | |
| Constructor. More... | |
| virtual bool | Evaluate (double const *const *parameters, double *residuals, double **jacobians) const final |
| Evaluate the fitting function and its Jacobian. More... | |
Static Public Attributes | |
| static constexpr double | scale = 128.0 |
| Surface density scaling factor. More... | |
Private Member Functions | |
| void | clearCache () const |
| Clear result cache. More... | |
Private Attributes | |
| const GrayData & | gd_ |
| double | jcache_ [NB *NP] |
| Jacobian cache. More... | |
| double | pcache_ [NP] |
| Parameter cache. More... | |
| double | rcache_ [NB] |
| Residual cache. More... | |
Ceres solver graybody cost model.
The model consists of up to four parameters (two gas components, core and halo, each with a temperature \(T\) and mass surface density \(S\)), with the halo temperature sometimes held fixed as shown below.
| NP | Active parameters | Fixed parameters |
|---|---|---|
| 1 | Sh | Th |
| 2 | Th, Sh | - |
| 3 | Sh, Tc, Sc | Th |
| 4 | Th, Sh, Tc, Sc | - |
| NB | Number of bands. |
| NP | Number of parameters. |
|
inline |
Constructor.
Definition at line 100 of file solve.cc.
References manticore::Fcost_gray< NB, NP >::clearCache().
|
inlineprivate |
Clear result cache.
Definition at line 177 of file solve.cc.
References manticore::Fcost_gray< NB, NP >::pcache_.
Referenced by manticore::Fcost_gray< NB, NP >::Evaluate(), and manticore::Fcost_gray< NB, NP >::Fcost_gray().
|
inlinefinalvirtual |
Evaluate the fitting function and its Jacobian.
Definition at line 103 of file solve.cc.
References manticore::GrayData::band, manticore::Fcost_gray< NB, NP >::clearCache(), manticore::GrayData::fixed, manticore::GrayData::Fobs, manticore::Fcost_gray< NB, NP >::gd_, manticore::GrayData::gray, manticore::GrayData::iFerr, manticore::Fcost_gray< NB, NP >::jcache_, MU_DEBUG, manticore::Fcost_gray< NB, NP >::pcache_, manticore::Fcost_gray< NB, NP >::rcache_, and manticore::Fcost_gray< NB, NP >::scale.
|
private |
Definition at line 167 of file solve.cc.
Referenced by manticore::Fcost_gray< NB, NP >::Evaluate().
|
mutableprivate |
Jacobian cache.
Definition at line 172 of file solve.cc.
Referenced by manticore::Fcost_gray< NB, NP >::Evaluate().
|
mutableprivate |
Parameter cache.
Definition at line 172 of file solve.cc.
Referenced by manticore::Fcost_gray< NB, NP >::clearCache(), and manticore::Fcost_gray< NB, NP >::Evaluate().
|
mutableprivate |
Residual cache.
Definition at line 172 of file solve.cc.
Referenced by manticore::Fcost_gray< NB, NP >::Evaluate().
|
static |
Surface density scaling factor.
Definition at line 97 of file solve.cc.
Referenced by manticore::Fcost_gray< NB, NP >::Evaluate().
1.8.15