#include <NCFitter.h>
Inheritance diagram for NC::Fitter::FixVarsInt:

Public Member Functions | |
| FixVarsInt (const ICallableInt *fun, const CoordInt &fix, const std::vector< int > &vary) | |
| virtual | ~FixVarsInt () |
| double | EvalAt (const CoordInt &r) const |
| void | SetFixed (CoordInt c) |
Private Attributes | |
| const ICallableInt * | fFunc |
| CoordInt | fFixed |
| std::vector< int > | fToVary |
For each position not listed in vary` the value from the corresponding position in fix will be substituted in at call time.
Definition at line 249 of file NCFitter.h.
|
||||||||||||||||
|
Definition at line 1384 of file NCFitter.cxx. References NC::Fitter::CoordInt.
|
|
|
Definition at line 255 of file NCFitter.h. 00255 {} // shut gcc up
|
|
|
Reimplemented from NC::Fitter::ICallableInt. Definition at line 1390 of file NCFitter.cxx. References NC::Fitter::CoordInt, NC::Fitter::ICallableInt::EvalAt(), fFunc, and fToVary. 01391 {
01392 assert(fToVary.size() == r.size());
01393 // For every parameter in the list of what we are to vary - substitute
01394 // in, in order, from the parameters we were passed.
01395 CoordInt fixed = fFixed;
01396 for(unsigned int n = 0; n < fToVary.size(); ++n)
01397 fixed[fToVary[n]] = r[n];
01398 return fFunc->EvalAt(fixed);
01399 }
|
|
|
Definition at line 257 of file NCFitter.h. References NC::Fitter::CoordInt. Referenced by NC::Fitter::MarginalizeSimpleInt::EvalAtEx(). 00257 {fFixed = c;}
|
|
|
Definition at line 260 of file NCFitter.h. |
|
|
Definition at line 259 of file NCFitter.h. Referenced by EvalAt(). |
|
|
Definition at line 261 of file NCFitter.h. Referenced by EvalAt(). |
1.3.9.1