1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef ZSCORE_H
- #define ZSCORE_H
- #include <QVector>
- /**************************************************************
- * 模型
- * | | expert 1 | expert 2 | expert 3 | . . . . . . . . |
- * | index 1 | r11 | r12 | r13 | EvaluateIndex1 |
- * | index 2 | r21 | r22 | r23 | EvaluateIndex2 |
- * | index 3 | r31 | r32 | r33 | EvaluateIndex3 |
- *
- * 对每个指标Z Scode无量纲处理 y = (x - mean) / variance
- */
- class ZScore
- {
- public:
- typedef QVector<qreal> EvaluateIndex; //评估指标
- typedef QVector<qreal> Relations; //联系度
- ZScore(const QVector<EvaluateIndex> &rMat);
- const QVector<EvaluateIndex> &zScoreResult();
- /**
- * @brief 联系度值
- * @return
- */
- Relations getRelations() const;
- private:
- QVector<EvaluateIndex> originMat;
- QVector<EvaluateIndex> zScoreMat;
- void calcZScoreMat();
- };
- #endif // ZSCORE_H
|