Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches

Parameters and results from least squares fit with errors in both co-ordinates. More...

#include <ms_fitexy_result.hpp>

Inherits ms_handle.

Public Member Functions

 ms_fitexy_result ()
 Default constructor.
 
double getA () const
 Get the a value.
 
double getB () const
 Get the b value.
 
double getChi2 () const
 Get the chi-squared value.
 
double getQ () const
 Get the chi squared probabilty. The larger the value, the better the fit.
 
double getSigmaA () const
 Get the a sigma.
 
double getSigmaB () const
 Get the b sigma.
 
double getSigmaX () const
 Get the x sigma.
 
double getSigmaY () const
 Get the y sigma.
 

Detailed Description

Parameters and results from least squares fit with errors in both co-ordinates.

Mascot Parser does not contain the code to calculate the fit. This class just returns the result of the fitting of a straight line: y = a + bx

The results are stored in XML in a "fitexy" entity.

Constructor & Destructor Documentation

◆ ms_fitexy_result()

Default constructor.

Assigns reasonable default values to all internal members.

Member Function Documentation

◆ getA()

double getA ( ) const

Get the a value.

The fitted line is y = a + bx

Returns
The a value.

◆ getB()

double getB ( ) const

Get the b value.

The fitted line is y = a + bx

Returns
The b value.

◆ getChi2()

double getChi2 ( ) const

Get the chi-squared value.

Returns
The chi-squared value.

◆ getQ()

double getQ ( ) const

Get the chi squared probabilty. The larger the value, the better the fit.

The goodness of fit probability q that the fit would have getChi2() this large or larger

Returns
The Q value.

◆ getSigmaA()

double getSigmaA ( ) const

Get the a sigma.

The relative probable uncertanty of 'a'

Returns
The a sigma.

◆ getSigmaB()

double getSigmaB ( ) const

Get the b sigma.

The relative probable uncertanty of 'b'

Returns
The b sigma.

◆ getSigmaX()

double getSigmaX ( ) const

Get the x sigma.

The standard deviation of x data.

Returns
The x sigma.

◆ getSigmaY()

double getSigmaY ( ) const

Get the y sigma.

The standard deviation of y data.

Returns
The y sigma.

The documentation for this class was generated from the following files: