Files
pearson/Pearson.h
2022-01-07 15:42:08 +08:00

34 lines
612 B
C++

//
// 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