![]() |
Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
The serializable result data of the linear regression algorithm. More...
#include <bayeux/mygsl/linear_regression.h>
Public Member Functions | |
| fit_data () | |
| Constructor. More... | |
| virtual | ~fit_data () |
| Destructor. More... | |
| bool | is_valid () const |
| Check if the fit data are valid. More... | |
| bool | is_weighted () const |
| Check if the fit was weighted. More... | |
| bool | has_constant () const |
| Check if the linear fit uses a constant parameter. More... | |
| void | reset () |
| Reset the fit data. More... | |
| double | get_slope () const |
| Return the slope parameter. More... | |
| double | get_constant () const |
| Return the constant parameter. More... | |
| size_t | get_ndof () const |
| Return the number of degrees of freedom. More... | |
| double | get_chisq () const |
| Return the chi squared. More... | |
| double | get_sumsq () const |
| Return the sum of squared residuals. More... | |
| double | get_slope_err () const |
| Return the error on the slope. More... | |
| double | get_constant_err () const |
| Return the error on the constant. More... | |
Public Member Functions inherited from datatools::i_serializable | |
| i_serializable () | |
| Default constructor. More... | |
| virtual | ~i_serializable () |
| Destructor. More... | |
| virtual const std::string & | get_serial_tag () const =0 |
| Return the serialization string identifier of the class. More... | |
Public Attributes | |
| uint32_t | n |
| int32_t | status |
| Number of fitted points. More... | |
| bool | weighted |
| Status of the fit 0 == fit results; no fit otherwise. More... | |
| bool | with_constant |
| Flag for a weighted fut. More... | |
| double | c1 |
| Flag for a linear fit with a constant. More... | |
| double | c0 |
| Slope parameter. More... | |
| double | cov00 |
| Constant parameter. More... | |
| double | cov01 |
| Covariance coefficient. More... | |
| double | cov11 |
| Covariance coefficient. More... | |
| double | sumsq |
| Covariance coefficient. More... | |
| double | chisq |
| Sum of squared residuals. More... | |
The serializable result data of the linear regression algorithm.
| mygsl::linear_regression::fit_data::fit_data | ( | ) |
Constructor.
|
virtual |
Destructor.
| double mygsl::linear_regression::fit_data::get_chisq | ( | ) | const |
Return the chi squared.
| double mygsl::linear_regression::fit_data::get_constant | ( | ) | const |
Return the constant parameter.
| double mygsl::linear_regression::fit_data::get_constant_err | ( | ) | const |
Return the error on the constant.
| size_t mygsl::linear_regression::fit_data::get_ndof | ( | ) | const |
Return the number of degrees of freedom.
| double mygsl::linear_regression::fit_data::get_slope | ( | ) | const |
Return the slope parameter.
| double mygsl::linear_regression::fit_data::get_slope_err | ( | ) | const |
Return the error on the slope.
| double mygsl::linear_regression::fit_data::get_sumsq | ( | ) | const |
Return the sum of squared residuals.
| bool mygsl::linear_regression::fit_data::has_constant | ( | ) | const |
Check if the linear fit uses a constant parameter.
| bool mygsl::linear_regression::fit_data::is_valid | ( | ) | const |
Check if the fit data are valid.
| bool mygsl::linear_regression::fit_data::is_weighted | ( | ) | const |
Check if the fit was weighted.
| void mygsl::linear_regression::fit_data::reset | ( | ) |
Reset the fit data.
| double mygsl::linear_regression::fit_data::c0 |
Slope parameter.
| double mygsl::linear_regression::fit_data::c1 |
Flag for a linear fit with a constant.
| double mygsl::linear_regression::fit_data::chisq |
Sum of squared residuals.
| double mygsl::linear_regression::fit_data::cov00 |
Constant parameter.
| double mygsl::linear_regression::fit_data::cov01 |
Covariance coefficient.
| double mygsl::linear_regression::fit_data::cov11 |
Covariance coefficient.
| uint32_t mygsl::linear_regression::fit_data::n |
| int32_t mygsl::linear_regression::fit_data::status |
Number of fitted points.
| double mygsl::linear_regression::fit_data::sumsq |
Covariance coefficient.
| bool mygsl::linear_regression::fit_data::weighted |
Status of the fit 0 == fit results; no fit otherwise.
| bool mygsl::linear_regression::fit_data::with_constant |
Flag for a weighted fut.
1.8.15