58 lines
1.6 KiB
C++
58 lines
1.6 KiB
C++
#ifndef KOLCHSHINDWINDOW_H
|
|
#define KOLCHSHINDWINDOW_H
|
|
|
|
#include <QWidget>
|
|
#include <QMessageBox>
|
|
#include <QFile>
|
|
#include "Kolch_Shind/solver.h"
|
|
#include "Kolch_Shind/paintqwidget.h"
|
|
#include <iostream>
|
|
|
|
namespace Ui {
|
|
class KolchShindWindow;
|
|
}
|
|
|
|
class KolchShindWindow : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit KolchShindWindow(QWidget *parent = 0);
|
|
~KolchShindWindow();
|
|
|
|
private slots:
|
|
void on_pushButton_clicked();
|
|
void on_pushButton_cont_clicked();
|
|
void on_pushButton_Log_clicked();
|
|
void on_comboBox_modelNum_currentIndexChanged(int index);
|
|
void changeProgressBarVal(int iter);
|
|
|
|
signals:
|
|
|
|
void startDrawAll(int wgt_type, QCustomPlot* pPlot);
|
|
void startDraw(QCustomPlot* pPlot);
|
|
void startDrawParam(float c1, float c2, float c3, float c4, float c5, float sigC1, float sigC2, float sigC3, float sigC4, float sigC5,
|
|
float e, float sigE, float sigX0, float delX0, float sigX, float Xopt, int popSize, int maxSteps, int N,
|
|
int wgt_type, QCustomPlot* pPlot, int cnt, int modelsCount, int model_num);
|
|
void sendNewIter(int iterFlag, int iters);
|
|
void drawModel(int wgt_type, QCustomPlot* pPlot, int model_num);
|
|
|
|
private:
|
|
Ui::KolchShindWindow *ui;
|
|
PaintQWidget paintWgt;
|
|
Solver solver;
|
|
int newIterFlag;
|
|
int newModelFlag;
|
|
int firstStart;
|
|
QVector<double> withFeed;
|
|
QVector<double> withoutFeed;
|
|
|
|
QVector<double> eMeans;
|
|
QVector<double> fMeans;
|
|
QVector<double> c2Means;
|
|
QVector<double> individ;
|
|
QVector<double> individFeed;
|
|
};
|
|
|
|
#endif // KOLCHSHINDWINDOW_H
|