#include <cctwlinearfitter.h>
Definition at line 6 of file cctwlinearfitter.h.
CctwLinearFitter::CctwLinearFitter |
( |
QString |
name, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
void CctwLinearFitter::appendPoint |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
slot |
double CctwLinearFitter::intercept |
( |
| ) |
|
|
slot |
void CctwLinearFitter::performFit |
( |
int |
skipStart, |
|
|
int |
skipEnd |
|
) |
| |
|
slot |
Definition at line 24 of file cctwlinearfitter.cpp.
References m_Intercept, m_RSquared, m_Slope, m_XData, and m_YData.
26 int start = skipStart, end =
m_XData.count()-skipEnd;
28 double n = 0, meanx = 0, meany = 0;
30 for (
int i=start; i<end; i++) {
39 double ssxx = 0, ssyy = 0, ssxy = 0;
41 for (
int i=start; i<end; i++) {
QVector< double > m_YData
QVector< double > m_XData
double CctwLinearFitter::rSquared |
( |
| ) |
|
|
slot |
double CctwLinearFitter::slope |
( |
| ) |
|
|
slot |
void CctwLinearFitter::startNewFit |
( |
| ) |
|
|
slot |
double CctwLinearFitter::m_Intercept |
|
private |
double CctwLinearFitter::m_RSquared |
|
private |
double CctwLinearFitter::m_Slope |
|
private |
QVector<double> CctwLinearFitter::m_XData |
|
private |
QVector<double> CctwLinearFitter::m_YData |
|
private |
The documentation for this class was generated from the following files: