1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef AVERAGEMETHOD_H
- #define AVERAGEMETHOD_H
- #include <QString>
- #include <QVector>
- class AverageMethod
- {
- public:
- enum MethodType
- {
- Max = 0,
- Min,
- ZScore
- };
- typedef QVector<qreal> EvaluateIndex;
- typedef QVector<qreal> Relations;
-
- AverageMethod(const QVector<EvaluateIndex> &rMat, const QVector<qreal> &wMat, const QVector<qreal> &m_maxMat,
- const QVector<qreal> &m_minMat, const QVector<qreal> &m_sumMat, int type);
-
- Relations getRelations() const;
- private:
- QVector<EvaluateIndex> m_rMat;
- QVector<qreal> m_wMat;
- QVector<qreal> m_maxMat;
- QVector<qreal> m_minMat;
- QVector<qreal> m_sumMat;
- };
- #endif
|