28 const Array& parameterValues,
29 const std::vector<bool>& fixParameters)
30 :
Projection(parameterValues, fixParameters), costFunction_(costFunction) {}
35 :
Projection(projection), costFunction_(costFunction) {}
1-D array used in linear algebra.
Cost function abstract class for optimization problem.
virtual Array values(const Array &x) const =0
method to overload to compute the cost function values in x
virtual Real value(const Array &x) const
method to overload to compute the cost function value in x
Real value(const Array &freeParameters) const override
method to overload to compute the cost function value in x
const CostFunction & costFunction_
ProjectedCostFunction(const CostFunction &costFunction, const Array ¶meterValues, const std::vector< bool > &fixParameters)
Array values(const Array &freeParameters) const override
method to overload to compute the cost function values in x
void mapFreeParameters(const Array ¶meterValues) const