| 
    libpappsomspp
    
   Library for mass spectrometry 
   | 
 
#include <linearregression.h>
Public Member Functions | |
| LinearRegression (const Trace &data) | |
| LinearRegression (const LinearRegression &other) | |
| double | getYfromX (double score) const | 
| double | getIntercept () const | 
| double | getSlope () const | 
| double | getRmsd () const | 
| get Root-Mean-Square Deviation   | |
| double | getNrmsd () const | 
| get Normalized Root-Mean-Square Deviation   | |
| double | getCoefficientOfDetermination () const | 
| get Coefficient of determination (R2)   | |
| std::size_t | getSize () const | 
| get data size   | |
Private Attributes | |
| double | m_slope = 0 | 
| double | m_intercept = 0 | 
| Trace | m_data | 
Definition at line 32 of file linearregression.h.
| LinearRegression::LinearRegression | ( | const Trace & | data | ) | 
Definition at line 40 of file linearregression.cpp.
References pappso::a, pappso::b, m_data, m_intercept, m_slope, pappso::sumYTrace(), pappso::x, and pappso::y.
| pappso::LinearRegression::LinearRegression | ( | const LinearRegression & | other | ) | 
Definition at line 33 of file linearregression.cpp.
References m_data, m_intercept, and m_slope.
| double LinearRegression::getCoefficientOfDetermination | ( | ) | const | 
get Coefficient of determination (R2)
Definition at line 120 of file linearregression.cpp.
References getYfromX(), m_data, pappso::meanYTrace(), pappso::x, and pappso::y.
Referenced by pappso::IonIsotopeRatioScore::IonIsotopeRatioScore(), and pappso::cbor::psm::PsmFeaturesScan::process().
| pappso::pappso_double LinearRegression::getIntercept | ( | ) | const | 
Definition at line 78 of file linearregression.cpp.
References m_intercept.
| double LinearRegression::getNrmsd | ( | ) | const | 
get Normalized Root-Mean-Square Deviation
Definition at line 113 of file linearregression.cpp.
References getRmsd(), m_data, pappso::maxYDataPoint(), and pappso::minYDataPoint().
| double LinearRegression::getRmsd | ( | ) | const | 
get Root-Mean-Square Deviation
Definition at line 94 of file linearregression.cpp.
References getYfromX(), m_data, pappso::x, and pappso::y.
Referenced by getNrmsd().
| std::size_t pappso::LinearRegression::getSize | ( | ) | const | 
get data size
Definition at line 71 of file linearregression.cpp.
References m_data.
Referenced by pappso::cbor::psm::PsmFeaturesScan::process().
| pappso::pappso_double LinearRegression::getSlope | ( | ) | const | 
| pappso::pappso_double LinearRegression::getYfromX | ( | double | score | ) | const | 
Definition at line 88 of file linearregression.cpp.
References m_intercept, m_slope, and pappso::x.
Referenced by getCoefficientOfDetermination(), and getRmsd().
      
  | 
  private | 
Definition at line 60 of file linearregression.h.
Referenced by LinearRegression(), LinearRegression(), getCoefficientOfDetermination(), getNrmsd(), getRmsd(), and getSize().
      
  | 
  private | 
Definition at line 59 of file linearregression.h.
Referenced by LinearRegression(), LinearRegression(), getIntercept(), and getYfromX().
      
  | 
  private | 
Definition at line 58 of file linearregression.h.
Referenced by LinearRegression(), LinearRegression(), getSlope(), and getYfromX().