-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathNoteEvaluationStats.h
50 lines (37 loc) · 1.2 KB
/
NoteEvaluationStats.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
#ifndef NoteEvaluationStats_h
#define NoteEvaluationStats_h
//============================================================================
/**
Class representing .
@author Johan Pauwels
@date 20101206
*/
//============================================================================
#include <Eigen/Core>
class NoteEvaluationStats
{
public:
/** Default constructor. */
/**
@param inConfusionMatrix Confusion matrix with annotated values in the columns
and predicted values in the rows */
NoteEvaluationStats(const Eigen::ArrayXXd& inConfusionMatrix);
/** Destructor. */
virtual ~NoteEvaluationStats();
/** Gets the duration in seconds of the correctly detected notes.
@return */
const double getCorrectNotes() const;
const double getCorrectNoNotes() const;
const double getNoteDeletions() const;
const double getNoteInsertions() const;
const double getOctaveErrors() const;
const double getFifthErrors() const;
const double getChromaticUpErrors() const;
const double getChromaticDownErrors() const;
protected:
private:
Eigen::ArrayXXd m_ConfusionMatrix;
Eigen::ArrayXXd::Index m_NumOfNotes;
Eigen::Block<Eigen::ArrayXXd> m_NotesMatrix;
};
#endif // #ifndef NoteEvaluationStats_h