1 #ifndef ALGEBRAIC_FITTING_FUNCTION_H
2 #define ALGEBRAIC_FITTING_FUNCTION_H
4 #include "ipde_fit_parameter.h"
6 #include "KVNameValueList.h"
32 class bce_fit_results {
34 ipde_fit_parameter k0;
35 ipde_fit_parameter alpha;
36 ipde_fit_parameter
gamma;
37 ipde_fit_parameter
theta;
38 ipde_fit_parameter kmax;
39 ipde_fit_parameter Xmax;
43 bce_fit_results() =
default;
44 bce_fit_results(
const bce_fit_results& other)
45 : k0(other.k0), alpha(other.alpha),
gamma(other.gamma),
theta(other.theta), kmax(other.kmax), Xmax(other.Xmax)
47 bce_fit_results&
operator=(
const bce_fit_results& other)
51 alpha = (other.alpha);
52 gamma = (other.gamma);
53 theta = (other.theta);
62 std:: cout <<
" kmax = ";
64 std::cout <<
" k0 = ";
66 std::cout <<
" alpha = ";
68 std:: cout <<
" gamma = ";
70 std::cout <<
" theta = ";
72 std::cout << std::endl;
74 } params, param_backup;
82 param_backup = params;
87 params = param_backup;
92 params.kmax.value = 1. / params.theta.value;
94 params.Xmax.value = 1;
101 double k_cb(
double cb)
const;
107 return params.theta.value;
Binding & operator=(OUT(*fun)(U0 u0))
Algebraic relationship between mean value of observable and centrality.
void fill_array_from_params(double *p) const
algebraic_fitting_function()
double k_cb(double cb) const
void print_fit_params() const
double meanX(double cb) const
void normalise_shape_function()
KVNameValueList get_params() const
Fill list with names and values of parameters.
void fill_params_from_array(double *p)
void set_par_names(TF1 &f) const
double redVar(double) const
void set_initial_parameters(TH1 *h, TF1 &f)
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
void Print(std::ostream &os, const OptionType &opt)