cctw  0.2.1
cctwlinearfitter.h
Go to the documentation of this file.
1 #ifndef CCTWLINEARFITTER_H
2 #define CCTWLINEARFITTER_H
3 
4 #include "cctwobject.h"
5 
7 {
8  Q_OBJECT
9 public:
10  explicit CctwLinearFitter(QString name, QObject *parent = 0);
11 
12 signals:
13 
14 public slots:
15  void startNewFit();
16  void appendPoint(double x, double y);
17  void performFit(int skipStart, int skipEnd);
18  double slope();
19  double intercept();
20  double rSquared();
21 
22 private:
23  QVector<double> m_XData;
24  QVector<double> m_YData;
25  double m_Slope;
26  double m_Intercept;
27  double m_RSquared;
28 };
29 
30 #endif // CCTWLINEARFITTER_H
QString name
Definition: cctwobject.h:32
QVector< double > m_YData
void performFit(int skipStart, int skipEnd)
QVector< double > m_XData
void appendPoint(double x, double y)
CctwLinearFitter(QString name, QObject *parent=0)