ECF 1.5
measures.h
1#ifndef ECF_CARTESIAN_MEASURES_H
2#define ECF_CARTESIAN_MEASURES_H
3#include <vector>
4#include <string>
5namespace utility
6{
7 typedef unsigned int uint;
8
9 double accuracy(int TP, int TN, int FP, int FN, int numberOfClasses, int alpha = 1);
10
11 double error(int TP, int TN, int FP, int FN, int numberOfClasses, int alpha = 1);
12
13 double precision(int TP, int FP, int numberOfClasses, int alpha = 1);
14
15 double sensitivity(int TP, int FN, int numberOfClasses, int alpha = 1);
16
17 double fallout(int FP, int TN, int numberOfClasses, int alpha = 1);
18
19 double specificity(int TN, int FP, int numberOfClasses, int alpha = 1);
20
21 double F1(int TP, int FP, int FN, int numberOfClasses, int alpha = 1);
22
23 double FBeta(int TP, int FP, int FN, double beta, int numberOfClasses, int alpha = 1);
24
25 double returnConfusionMatrixResult(const std::vector<std::vector<uint> >& confusionMatrix, uint size,
26 const std::string& measureUsed, int alpha = 1);
27
28 double meanSquareError(const std::vector<double>& trueOutput, const std::vector<double>& calculatedOutput);
29
30 double rootMeanSquareError(const std::vector<double>& trueOutput, const std::vector<double>& calculatedOutput);
31}
32#endif //ECF_CARTESIAN_MEASURES_H