|
@@ -14,6 +14,8 @@
|
|
#include "algorithm/GreyClusterEvaluation.h"
|
|
#include "algorithm/GreyClusterEvaluation.h"
|
|
#include <algorithm/MatterElementAnalysis.h>
|
|
#include <algorithm/MatterElementAnalysis.h>
|
|
|
|
|
|
|
|
+#include <windows.h>
|
|
|
|
+
|
|
void test()
|
|
void test()
|
|
{
|
|
{
|
|
MEAMat mat;
|
|
MEAMat mat;
|
|
@@ -26,34 +28,55 @@ void test()
|
|
qDebug() << mat[0].size() << mat[1].size();
|
|
qDebug() << mat[0].size() << mat[1].size();
|
|
// 等级1
|
|
// 等级1
|
|
ranges << QVector<MEARange> {
|
|
ranges << QVector<MEARange> {
|
|
- { 0, 0, 1 }, { 1, 50, 100 }, { 2, 0, 1 }, { 3, 60, 100 }, { 4, 3, 100 }, { 5, 0, 30 }, { 6, 0, 60 },
|
|
|
|
- { 7, 0, 1 }, { 8, 0, 30 }, { 9, 0, 60 }, { 10, 2, 100 }, { 11, 0, 60 }, { 12, 0, 30 }, { 13, 0, 1 },
|
|
|
|
- { 14, 60, 100 }, { 15, 0, 1 }, { 16, 0, 30 }, { 17, 0, 5 }, { 18, 50, 100 }, { 19, 0, 1 },
|
|
|
|
|
|
+ { 0, true, false, 0, 1 }, { 1, true, false, 50, 100 }, { 2, true, false, 0, 1 },
|
|
|
|
+ { 3, true, false, 60, 100 }, { 4, true, false, 3, 100 }, { 5, true, false, 0, 30 },
|
|
|
|
+ { 6, true, false, 0, 60 }, { 7, true, false, 0, 1 }, { 8, true, false, 0, 30 },
|
|
|
|
+ { 9, true, false, 0, 60 }, { 10, true, false, 2, 100 }, { 11, true, false, 0, 60 },
|
|
|
|
+ { 12, true, false, 0, 30 }, { 13, true, false, 0, 1 }, { 14, true, false, 60, 100 },
|
|
|
|
+ { 15, true, false, 0, 1 }, { 16, true, false, 0, 30 }, { 17, true, false, 0, 5 },
|
|
|
|
+ { 18, true, false, 50, 100 }, { 19, true, false, 0, 1 },
|
|
};
|
|
};
|
|
|
|
|
|
// 等级1
|
|
// 等级1
|
|
ranges << QVector<MEARange> {
|
|
ranges << QVector<MEARange> {
|
|
- { 0, 2, 3 }, { 1, 5, 100 }, { 2, 1, 2 }, { 3, 45, 60 }, { 4, 2, 3 }, { 5, 30, 50 }, { 6, 60, 80 },
|
|
|
|
- { 7, 1, 1.5 }, { 8, 30, 50 }, { 9, 60, 80 }, { 10, 1.5, 2 }, { 11, 60, 80 }, { 12, 30, 50 }, { 13, 1, 3 },
|
|
|
|
- { 14, 45, 60 }, { 15, 1, 2 }, { 16, 30, 50 }, { 17, 5, 10 }, { 18, 30, 50 }, { 19, 1, 2 },
|
|
|
|
|
|
+ { 0, true, false, 2, 3 }, { 1, true, false, 5, 100 }, { 2, true, false, 1, 2 },
|
|
|
|
+ { 3, true, false, 45, 60 }, { 4, true, false, 2, 3 }, { 5, true, false, 30, 50 },
|
|
|
|
+ { 6, true, false, 60, 80 }, { 7, true, false, 1, 1.5 }, { 8, true, false, 30, 50 },
|
|
|
|
+ { 9, true, false, 60, 80 }, { 10, true, false, 1.5, 2 }, { 11, true, false, 60, 80 },
|
|
|
|
+ { 12, true, false, 30, 50 }, { 13, true, false, 1, 3 }, { 14, true, false, 45, 60 },
|
|
|
|
+ { 15, true, false, 1, 2 }, { 16, true, false, 30, 50 }, { 17, true, false, 5, 10 },
|
|
|
|
+ { 18, true, false, 30, 50 }, { 19, true, false, 1, 2 },
|
|
};
|
|
};
|
|
|
|
|
|
ranges << QVector<MEARange> {
|
|
ranges << QVector<MEARange> {
|
|
- { 1, 3, 4 }, { 1, 20, 30 }, { 2, 2, 3 }, { 3, 30, 45 }, { 4, 1, 2 }, { 5, 50, 80 }, { 6, 80, 95 },
|
|
|
|
- { 7, 1.5, 2 }, { 8, 50, 80 }, { 9, 80, 95 }, { 10, 1, 1.5 }, { 11, 80, 95 }, { 12, 50, 80 }, { 13, 3, 5 },
|
|
|
|
- { 14, 30, 45 }, { 15, 2, 3 }, { 16, 50, 80 }, { 17, 10, 20 }, { 18, 20, 30 }, { 19, 2, 3 },
|
|
|
|
|
|
+ { 1, true, false, 3, 4 }, { 1, true, false, 20, 30 }, { 2, true, false, 2, 3 },
|
|
|
|
+ { 3, true, false, 30, 45 }, { 4, true, false, 1, 2 }, { 5, true, false, 50, 80 },
|
|
|
|
+ { 6, true, false, 80, 95 }, { 7, true, false, 1.5, 2 }, { 8, true, false, 50, 80 },
|
|
|
|
+ { 9, true, false, 80, 95 }, { 10, true, false, 1, 1.5 }, { 11, true, false, 80, 95 },
|
|
|
|
+ { 12, true, false, 50, 80 }, { 13, true, false, 3, 5 }, { 14, true, false, 30, 45 },
|
|
|
|
+ { 15, true, false, 2, 3 }, { 16, true, false, 50, 80 }, { 17, true, false, 10, 20 },
|
|
|
|
+ { 18, true, false, 20, 30 }, { 19, true, false, 2, 3 },
|
|
};
|
|
};
|
|
// 2
|
|
// 2
|
|
- ranges << QVector<MEARange> { { 0, 5, 100 }, { 1, 0, 20 }, { 2, 3, 100 }, { 3, 0, 30 }, { 4, 0, 1 },
|
|
|
|
- { 5, 80, 100 }, { 6, 95, 100 }, { 7, 2, 100 }, { 8, 80, 100 }, { 9, 95, 100 },
|
|
|
|
- { 10, 0, 1 }, { 11, 95, 100 }, { 12, 80, 100 }, { 13, 5, 100 }, { 14, 0, 30 },
|
|
|
|
- { 15, 3, 100 }, { 16, 80, 100 }, { 17, 20, 100 }, { 18, 0, 20 }, { 19, 3, 100 } };
|
|
|
|
|
|
+ ranges << QVector<MEARange> {
|
|
|
|
+ { 0, true, false, 5, 100 }, { 1, true, false, 0, 20 }, { 2, true, false, 3, 100 },
|
|
|
|
+ { 3, true, false, 0, 30 }, { 4, true, false, 0, 1 }, { 5, true, false, 80, 100 },
|
|
|
|
+ { 6, true, false, 95, 100 }, { 7, true, false, 2, 100 }, { 8, true, false, 80, 100 },
|
|
|
|
+ { 9, true, false, 95, 100 }, { 10, true, false, 0, 1 }, { 11, true, false, 95, 100 },
|
|
|
|
+ { 12, true, false, 80, 100 }, { 13, true, false, 5, 100 }, { 14, true, false, 0, 30 },
|
|
|
|
+ { 15, true, false, 3, 100 }, { 16, true, false, 80, 100 }, { 17, true, false, 20, 100 },
|
|
|
|
+ { 18, true, false, 0, 20 }, { 19, true, false, 3, 100 }
|
|
|
|
+ };
|
|
|
|
|
|
// 等级范围p
|
|
// 等级范围p
|
|
ranges << QVector<MEARange> {
|
|
ranges << QVector<MEARange> {
|
|
- { 0, 0, 140 }, { 1, 120, 0 }, { 2, 0, 140 }, { 3, 140, 0 }, { 4, 140, 0 }, { 5, 0, 100 }, { 6, 0, 100 },
|
|
|
|
- { 7, 0, 140 }, { 8, 0, 100 }, { 9, 0, 100 }, { 10, 0, 100 }, { 11, 0, 100 }, { 12, 0, 100 }, { 13, 0, 140 },
|
|
|
|
- { 14, 140, 0 }, { 15, 0, 140 }, { 16, 0, 100 }, { 17, 0, 140 }, { 18, 140, 0 }, { 19, 0, 140 },
|
|
|
|
|
|
+ { 0, true, false, 0, 140 }, { 1, true, false, 120, 0 }, { 2, true, false, 0, 140 },
|
|
|
|
+ { 3, true, false, 140, 0 }, { 4, true, false, 140, 0 }, { 5, true, false, 0, 100 },
|
|
|
|
+ { 6, true, false, 0, 100 }, { 7, true, false, 0, 140 }, { 8, true, false, 0, 100 },
|
|
|
|
+ { 9, true, false, 0, 100 }, { 10, true, false, 0, 100 }, { 11, true, false, 0, 100 },
|
|
|
|
+ { 12, true, false, 0, 100 }, { 13, true, false, 0, 140 }, { 14, true, false, 140, 0 },
|
|
|
|
+ { 15, true, false, 0, 140 }, { 16, true, false, 0, 100 }, { 17, true, false, 0, 140 },
|
|
|
|
+ { 18, true, false, 140, 0 }, { 19, true, false, 0, 140 },
|
|
};
|
|
};
|
|
|
|
|
|
// 等级
|
|
// 等级
|
|
@@ -129,7 +152,12 @@ int main(int argc, char *argv[])
|
|
font.setPointSize(14);
|
|
font.setPointSize(14);
|
|
a.setFont(font);
|
|
a.setFont(font);
|
|
|
|
|
|
- // cTest();
|
|
|
|
|
|
+ setbuf(stdout, NULL);
|
|
|
|
+
|
|
|
|
+ DWORD processId = GetCurrentProcessId();
|
|
|
|
+ qDebug() << __FUNCTION__ << __LINE__ << processId << endl;
|
|
|
|
+
|
|
|
|
+ printf("Process ID: %u\n", processId);
|
|
|
|
|
|
int ret = a.exec();
|
|
int ret = a.exec();
|
|
delete w;
|
|
delete w;
|