-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathKeyEvaluationStats.h
52 lines (37 loc) · 1.28 KB
/
KeyEvaluationStats.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef KeyEvaluationStats_h
#define KeyEvaluationStats_h
//============================================================================
/**
Class representing .
@author Johan Pauwels
@date 20101008
*/
//============================================================================
#include <Eigen/Core>
class KeyEvaluationStats
{
public:
/** Default constructor. */
KeyEvaluationStats(const Eigen::ArrayXXd& inConfusionMatrix, const Eigen::ArrayXXd::Index inNumOfChromas = 12);
/** Destructor. */
virtual ~KeyEvaluationStats();
const double getCorrectKeys() const;
const double getCorrectNoKeys() const;
const double getKeyDeletions() const;
const double getKeyInsertions() const;
const double getAdjacentKeys() const;
const double getRelativeKeys() const;
const double getParallelKeys() const;
const double getChromaticKeys() const;
const Eigen::ArrayXXd::Index getNumOfUniquesInRef() const;
const Eigen::ArrayXXd::Index getNumOfUniquesInTest() const;
const Eigen::ArrayXXd getCorrectKeysPerMode() const;
protected:
Eigen::ArrayXXd m_ConfusionMatrix;
Eigen::ArrayXXd::Index m_NumOfChromas;
Eigen::ArrayXXd::Index m_NumOfModes;
Eigen::ArrayXXd::Index m_NumOfKeys;
Eigen::Block<Eigen::ArrayXXd> m_KeysMatrix;
private:
};
#endif // #ifndef KeyEvaluationStats_h