diff options
Diffstat (limited to 'distortionobserver.h')
-rw-r--r-- | distortionobserver.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/distortionobserver.h b/distortionobserver.h new file mode 100644 index 0000000..9141d25 --- /dev/null +++ b/distortionobserver.h @@ -0,0 +1,29 @@ +#ifndef DISTORTIONOBSERVER_H +#define DISTORTIONOBSERVER_H + +#include <QObject> +#include <armadillo> + +class DistortionObserver : public QObject +{ + Q_OBJECT +public: + DistortionObserver(const arma::mat &X, const arma::uvec &sampleIndices); + virtual ~DistortionObserver(); + +signals: + void mapChanged(const arma::vec &distortion); + +public slots: + void setMap(const arma::mat &Y); + +protected: + virtual arma::vec measureFunc(const arma::mat &distA, const arma::mat &distB) = 0; + +private: + arma::mat m_X, m_Y, m_distX; + arma::uvec m_sampleIndices; + arma::vec m_measures; +}; + +#endif // DISTORTIONOBSERVER_H |