Init Commit

This commit is contained in:
2022-01-07 15:42:08 +08:00
commit 0cd8e3e851
12 changed files with 696 additions and 0 deletions

33
Pearson.h Normal file
View File

@@ -0,0 +1,33 @@
//
// Created by fly on 2021/11/25.
//
#ifndef PEARSON_PEARSON_H
#define PEARSON_PEARSON_H
#include <QObject>
#include <QRunnable>
#include <vector>
class Pearson : public QObject, public QRunnable {
Q_OBJECT
public:
Pearson(uint64_t index, std::vector<double> const &primary, std::vector<double> const &other,
QObject *parent = nullptr);
void run() override;
signals:
void result(uint64_t index, double pearson);
void finished();
private:
std::vector<double> const &m_primary;
std::vector<double> const &m_other;
uint16_t m_index;
};
#endif //PEARSON_PEARSON_H