7#ifndef FITTING_WINDOW_H
8#define FITTING_WINDOW_H
43 virtual void clear ();
48 const QString &curveSelected,
50 virtual QTableView *
view ()
const;
55 void slotCmbOrder(
int index);
68 void calculateCurveFitAndStatistics ();
70 void initializeOrder ();
71 int maxOrder ()
const;
73 void resizeTable (
int order);
75 QComboBox *m_cmbOrder;
79 QLineEdit *m_lblMeanSquareError;
80 QLineEdit *m_lblRootMeanSquare;
81 QLineEdit *m_lblRSquared;
83 QString m_curveSelected;
89 QVector<double> m_coefficients;
94 double m_significantDigits;
QVector< double > FittingCurveCoefficients
Coefficients x0, x1, ... in y = a0 + a1 * x + a2 * x^2 + ...
QList< QPointF > FittingPointsConvenient
Array of (x,y) points in graph coordinates.
Container for one set of digitized Points.
virtual void clear()
Clear stale information.
virtual void doCopy()
Copy the current selection to the clipboard.
FittingWindow(MainWindow *mainWindow)
Single constructor. Parent is needed or else this widget cannot be redocked after being undocked.
virtual void update(const CmdMediator &cmdMediator, const MainWindowModel &modelMainWindow, const QString &curveSelected, const Transformation &transformation)
Populate the table with the specified Curve.
virtual void closeEvent(QCloseEvent *event)
Catch close event so corresponding menu item in MainWindow can be updated accordingly.
void signalCurveFit(FittingCurveCoefficients, double, double, bool, bool)
Signal containing coefficients from curve fit.
virtual QTableView * view() const
QTableView-based class used by child class.
void signalFittingWindowClosed()
Signal that this QDockWidget was just closed.
Model for DlgSettingsMainWindow.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Matrix class that supports arbitrary NxN size.
WindowAbstractBase(QWidget *parent)
Single constructor. Parent is needed or else this widget cannot be redocked after being undocked.