22 #ifndef UNFIT_EXAMPLES_EXPONENTIAL_HPP_ 23 #define UNFIT_EXAMPLES_EXPONENTIAL_HPP_ 27 #include "GenericCostFunction.hpp" 60 const std::vector<double> &data_y)
78 std::vector<double>
operator()(
const std::vector<double> ¶m)
81 for (
auto i = 0u; i < residuals.size(); ++i) {
82 residuals[i] -= param[0] - exp(param[1]*
data_x_[i] + param[2]);
Fit a three parameter exponential to some data.
Definition: Exponential.hpp:44
Definition: Bounds.hpp:27
std::vector< double > operator()(const std::vector< double > ¶m)
Definition: Exponential.hpp:78
Definition: GenericCostFunction.hpp:36
const std::vector< double > data_y_
Definition: Exponential.hpp:90
Exponential(const std::vector< double > &data_x, const std::vector< double > &data_y)
Definition: Exponential.hpp:59
const std::vector< double > data_x_
Definition: Exponential.hpp:88