25 namespace ModelFitting {
30 return weight * (expected - current);
34 double expected_value,
double weight)
37 [
this, ¶meter, expected_value, weight](
double){
EngineParameter are those derived from the minimization process.
virtual ~EngineValueResidual()
Destructor.
void populateResidualBlock(IterType output_iter) override
std::size_t numberOfResiduals() const override
Always returns 1, as this class creates a single residual.
EngineValueResidual(EngineParameter ¶meter, double expected_value, double weight=1.)
Constructs a new instance of EngineValueResidual.
static double computeResidual(double current, double expected, double weight)
std::size_t addObserver(ParameterObserver observer)
The addObserver method adding observer to the member list.
double getEngineValue() const