Correlation.h
Go to the documentation of this file.
/***************************************************************************
File : Correlation.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2007 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Numerical correlation of data sets
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef CORRELATION_H
#define CORRELATION_H
#include "Filter.h"
class Correlation : public Filter
{
Q_OBJECT
public:
Correlation(ApplicationWindow *parent, Table *t, const QString& colName1, const QString& colName2, int startRow = 1, int endRow = -1);
bool setDataFromTable(Table *t, const QString& colName1, const QString& colName2, int startRow = 1, int endRow = -1);
protected:
void addResultCurve();
private:
virtual void output();
};
#endif
Correlation
Definition: Correlation.h:34
Filter
Abstract base class for data analysis operations.
Definition: Filter.h:43
Filter.h
Correlation::addResultCurve
void addResultCurve()
Handles the graphical output.
Definition: Correlation.cpp:143
Correlation::setDataFromTable
bool setDataFromTable(Table *t, const QString &colName1, const QString &colName2, int startRow=1, int endRow=-1)
Definition: Correlation.cpp:46
ApplicationWindow
QtiPlot's main window.
Definition: ApplicationWindow.h:133
Correlation::output
virtual void output()
Performs the data analysis and takes care of the output.
Definition: Correlation.cpp:114
Table
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
Correlation::Correlation
Correlation(ApplicationWindow *parent, Table *t, const QString &colName1, const QString &colName2, int startRow=1, int endRow=-1)
Definition: Correlation.cpp:39