|
#include <linear.hh>
Inheritance diagram for gslmm::linear< 1 >:
[legend]Collaboration diagram for gslmm::linear< 1 >:
[legend]List of all members.
Detailed Description
template<>
class gslmm::linear< 1 >
Class template to do fits to experimental data using linear combinations of functions.
The data may be weighted or unweighted. For weighted data the functions compute the best fit parameters and their associated covariance matrix. For unweighted data the covariance matrix is estimated from the scatter of the points, giving a variance-covariance matrix.
This class can be used to perform least-squares fits to a straight line model without a constant term, . For weighted data the best-fit is found by minimizing the weighted sum of squared residuals, ,
for the parameter . For unweighted data the sum is computed with .
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
|
Perform the fit.
- Parameters:
-
| x | The independet variable data points |
| w | Weights |
| y | The dependent variable data points |
- Returns:
- true on success
|
|
Perform the fit.
- Parameters:
-
| x | The independet variable data points |
| y | The dependent variable data points |
- Returns:
- true on success
|
|
Store result of fit.
- Parameters:
-
| p0 | Parameter |
| c00 | Covariance |
|
The documentation for this class was generated from the following file:
|