123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
-
- #ifndef ALGORITHM_GREYCLUSTEREVALUATION_H
- #define ALGORITHM_GREYCLUSTEREVALUATION_H
- #include <QVector>
- struct GCERange
- {
- int level;
- double left_left;
- double left_val;
- double right_val;
- double right_right;
- };
- struct GCEmat
- {
- double front_val;
- double back_val;
- };
- struct BestIndex
- {
- int front_index;
- int back_index;
- };
- typedef QVector<GCEmat> GCEMat;
- typedef QVector<QVector<GCERange>> GCERangeMat;
- class GreyClusterEvaluation
- {
- public:
-
- GreyClusterEvaluation(const GCEMat &mat, const GCERangeMat &ranges);
- void evaluate(const QVector<double> &weights);
- BestIndex getBestIndex() const;
- int sample_num_;
- int level_num_;
- private:
- void triangularwhiteningweight(int sam, double front_val, double back_val);
- void evaluationlevel(const QVector<double> &weights);
- GCEMat mat_;
- GCERangeMat ranges_;
- QVector<GCEMat> ranges_cv_;
- QVector<GCEmat> ranges_weight_;
- };
- #endif
|