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

Public Member Functions | |
| FixVars (const ICallableND *fun, const CoordNDim &fix, const std::vector< int > &vary) | |
| virtual | ~FixVars () |
| virtual double | EvalAtEx (const CoordNDim &r, CoordNDim *ret) const |
| Find the value of the function and return additional information. | |
| void | SetFixed (CoordNDim c) |
Private Attributes | |
| const ICallableND * | fFunc |
| CoordNDim | 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 227 of file NCFitter.h.
|
||||||||||||||||
|
Definition at line 1365 of file NCFitter.cxx. References NC::Fitter::CoordNDim.
|
|
|
Definition at line 233 of file NCFitter.h. 00233 { } // shut gcc up
|
|
||||||||||||
|
Find the value of the function and return additional information.
Implements NC::Fitter::ICallableND. Definition at line 1371 of file NCFitter.cxx. References NC::Fitter::CoordNDim, NC::Fitter::ICallableND::EvalAtEx(), fFunc, and fToVary. 01372 {
01373 assert(fToVary.size() == r.size());
01374 // For every parameter in the list of what we are to vary - substitute
01375 // in, in order, from the parameters we were passed.
01376 CoordNDim fixed = fFixed;
01377 for(unsigned int n = 0; n < fToVary.size(); ++n)
01378 fixed[fToVary[n]] = r[n];
01379 return fFunc->EvalAtEx(fixed, ret);
01380 }
|
|
|
Definition at line 235 of file NCFitter.h. References NC::Fitter::CoordNDim. Referenced by NC::Fitter::MarginalizeSimple::EvalAtEx(). 00235 {fFixed = c;}
|
|
|
Definition at line 238 of file NCFitter.h. |
|
|
Definition at line 237 of file NCFitter.h. Referenced by EvalAtEx(). |
|
|
Definition at line 239 of file NCFitter.h. Referenced by EvalAtEx(). |
1.3.9.1