15 #ifndef BORNAGAIN_FIT_KERNEL_PARAMETERS_H
16 #define BORNAGAIN_FIT_KERNEL_PARAMETERS_H
30 using parameters_t = std::vector<Parameter>;
31 using const_iterator = parameters_t::const_iterator;
32 using iterator = parameters_t::iterator;
33 using corr_matrix_t = std::vector<std::vector<double>>;
39 const_iterator begin()
const;
40 const_iterator end()
const;
47 std::vector<double> values()
const;
48 void setValues(
const std::vector<double>& values);
50 std::vector<double> errors()
const;
51 void setErrors(
const std::vector<double>& errors);
53 const Parameter& operator[](
const std::string& name)
const;
54 const Parameter& operator[](
size_t index)
const;
56 corr_matrix_t correlationMatrix()
const;
57 void setCorrelationMatrix(
const corr_matrix_t& matrix);
62 bool exists(
const std::string& parameter_name)
const;
63 void check_array_size(
const std::vector<double>& values)
const;
64 size_t check_index(
size_t index)
const;
66 parameters_t m_parameters;
67 corr_matrix_t m_corr_matrix;
A fittable parameter with value, error, step, and limits.
A collection of fit parameters.
size_t freeParameterCount() const
Returns number of free parameters.
Objective function types.