Public Member Functions | Private Attributes
pwiz::frequency::MagnitudeLorentzian Class Reference

#include <MagnitudeLorentzian.hpp>

List of all members.

Public Member Functions

 MagnitudeLorentzian (double a, double b, double c)
 MagnitudeLorentzian (std::vector< double > a)
 MagnitudeLorentzian (const std::vector< std::pair< double, double > > &samples)
double leastSquaresError () const
std::vector< double > & coefficients ()
const std::vector< double > & coefficients () const
double operator() (double x) const
double center () const
double tau () const
double alpha () const

Private Attributes

std::vector< double > a_
double leastSquaresError_

Detailed Description

Definition at line 36 of file MagnitudeLorentzian.hpp.

Constructor & Destructor Documentation

pwiz::frequency::MagnitudeLorentzian::MagnitudeLorentzian ( double  a,
double  b,
double  c 
pwiz::frequency::MagnitudeLorentzian::MagnitudeLorentzian ( std::vector< double >  a)
pwiz::frequency::MagnitudeLorentzian::MagnitudeLorentzian ( const std::vector< std::pair< double, double > > &  samples)

Member Function Documentation

double pwiz::frequency::MagnitudeLorentzian::leastSquaresError ( ) const

Referenced by testData().

std::vector<double>& pwiz::frequency::MagnitudeLorentzian::coefficients ( )

Referenced by testData(), and testFit().

const std::vector<double>& pwiz::frequency::MagnitudeLorentzian::coefficients ( ) const
double pwiz::frequency::MagnitudeLorentzian::operator() ( double  x) const
double pwiz::frequency::MagnitudeLorentzian::center ( ) const

Referenced by testBasic().

double pwiz::frequency::MagnitudeLorentzian::tau ( ) const

Referenced by testBasic().

double pwiz::frequency::MagnitudeLorentzian::alpha ( ) const

Referenced by testBasic().

Member Data Documentation

std::vector<double> pwiz::frequency::MagnitudeLorentzian::a_

Definition at line 58 of file MagnitudeLorentzian.hpp.

double pwiz::frequency::MagnitudeLorentzian::leastSquaresError_

Definition at line 59 of file MagnitudeLorentzian.hpp.

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