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 More... | |
double | getNrmsd () const |
get Normalized Root-Mean-Square Deviation More... | |
double | getCoefficientOfDetermination () const |
get Coefficient of determination (R2) More... | |
std::size_t | getSize () const |
get data size More... | |
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.
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().
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 |
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(), getCoefficientOfDetermination(), getNrmsd(), and getRmsd().
|
private |
Definition at line 59 of file linearregression.h.
Referenced by LinearRegression(), getIntercept(), and getYfromX().
|
private |
Definition at line 58 of file linearregression.h.
Referenced by LinearRegression(), getSlope(), and getYfromX().