23 float wt = 1. /
sqrt(e);
38 float wt = 1. /
sqrt(e);
51 for ( uint16_t
i = 0;
i < x_.size();
i++ ) {
52 float t = ( x_[
i] - sx_/ss_ ) / e_[
i];
54 b += t * y_[
i] / e_[
i];
58 params.
n_ = x_.size();
60 params.
a_ = ( sy_ - sx_ * params.
b_ ) / ss_;
61 params.
erra_ =
sqrt( ( 1. + (sx_*sx_) / (ss_*s2) ) / ss_ );
90 float wt = 1. /
sqrt(e);
107 float t = xx_/s_ - m*
m;
108 if ( t > 0. ) { t =
sqrt(t); }
113 if ( !vec_.empty() ) {
114 sort( vec_.begin(), vec_.end() );
115 uint16_t
index = vec_.size()%2 ? vec_.size()/2 : vec_.size()/2-1;
void add(const float &value_x, const float &value_y)
void add(const float &value, const float &error)
void fit(Params &fit_params)
void fit(Params &fit_params)