123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #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
|