QtiPlot
0.9.8.2
|
#include <Correlation.h>
Public Member Functions | |
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 Member Functions | |
void | addResultCurve () |
Handles the graphical output. | |
Private Member Functions | |
virtual void | output () |
Performs the data analysis and takes care of the output. |
Correlation::Correlation | ( | ApplicationWindow * | parent, |
Table * | t, | ||
const QString & | colName1, | ||
const QString & | colName2, | ||
int | startRow = 1 , |
||
int | endRow = -1 |
||
) |
References setDataFromTable().
void Correlation::addResultCurve | ( | ) | [protected] |
Handles the graphical output.
References Table::addCol(), Table::colName(), Table::colNames(), Filter::createOutputGraph(), Filter::d_curveColor, ApplicationWindow::d_decimal_digits, Filter::d_graphics_display, Filter::d_n, Filter::d_output_graph, Filter::d_table, Filter::d_x, Graph::insertPlotItem(), Graph::Line, Table::numCols(), Table::numRows(), Table::setColName(), Table::setColPlotDesignation(), Table::setHeaderColType(), Table::setNumRows(), Table::setText(), Graph::updatePlot(), Table::X, Filter::x(), and Filter::y().
Referenced by output().
void Correlation::output | ( | ) | [private, virtual] |
Performs the data analysis and takes care of the output.
Reimplemented from Filter.
References addResultCurve(), Filter::d_n, Filter::d_result_table, Filter::d_table, Filter::d_x, and Filter::d_y.
bool Correlation::setDataFromTable | ( | Table * | t, |
const QString & | colName1, | ||
const QString & | colName2, | ||
int | startRow = 1 , |
||
int | endRow = -1 |
||
) |
References Table::cell(), Table::colIndex(), Filter::d_init_err, Filter::d_n, Filter::d_table, Filter::d_x, Filter::d_y, Filter::freeMemory(), Filter::memoryErrorMessage(), and Table::numRows().
Referenced by Correlation().