1#ifndef ECF_CARTESIAN_MEASURES_H
2#define ECF_CARTESIAN_MEASURES_H
7 typedef unsigned int uint;
9 double accuracy(
int TP,
int TN,
int FP,
int FN,
int numberOfClasses,
int alpha = 1);
11 double error(
int TP,
int TN,
int FP,
int FN,
int numberOfClasses,
int alpha = 1);
13 double precision(
int TP,
int FP,
int numberOfClasses,
int alpha = 1);
15 double sensitivity(
int TP,
int FN,
int numberOfClasses,
int alpha = 1);
17 double fallout(
int FP,
int TN,
int numberOfClasses,
int alpha = 1);
19 double specificity(
int TN,
int FP,
int numberOfClasses,
int alpha = 1);
21 double F1(
int TP,
int FP,
int FN,
int numberOfClasses,
int alpha = 1);
23 double FBeta(
int TP,
int FP,
int FN,
double beta,
int numberOfClasses,
int alpha = 1);
25 double returnConfusionMatrixResult(
const std::vector<std::vector<uint> >& confusionMatrix, uint size,
26 const std::string& measureUsed,
int alpha = 1);
28 double meanSquareError(
const std::vector<double>& trueOutput,
const std::vector<double>& calculatedOutput);
30 double rootMeanSquareError(
const std::vector<double>& trueOutput,
const std::vector<double>& calculatedOutput);