-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathChordEvaluationStats.h
68 lines (50 loc) · 2.07 KB
/
ChordEvaluationStats.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef ChordEvaluationStats_h
#define ChordEvaluationStats_h
//============================================================================
/**
Class representing .
@author Johan Pauwels
@date 20100921
*/
//============================================================================
#include <vector>
#include <Eigen/Core>
#include "MusOO/Chord.h"
class ChordEvaluationStats
{
public:
/** Default constructor. */
ChordEvaluationStats(const Eigen::ArrayXXd& inConfusionMatrix, const std::vector<MusOO::Chord> inChords, const Eigen::ArrayXXd::Index inNumOfChromas = 12);
/** Destructor. */
virtual ~ChordEvaluationStats();
const double getCorrectChords() const;
const double getCorrectNoChords() const;
const double getChordDeletions() const;
const double getChordInsertions() const;
const double getChordSubstitutions() const;
const double getOnlyRootCorrect() const;
const double getOnlyTypeCorrect() const;
const double getBothRootAndTypeWrong() const;
const Eigen::ArrayXXd::Index getNumOfUniquesInRef() const;
const Eigen::ArrayXXd::Index getNumOfUniquesInTest() const;
const double getRefChordsDuration() const;
const double getRefNoChordsDuration() const;
const Eigen::ArrayXXd getCorrectChordsPerType() const;
const double getChordsWithNWrong(const Eigen::ArrayXXd::Index inNumOfWrongChromas) const;
const double getChordsWithSDI(const Eigen::ArrayXXd::Index inNumOfSubstitutedChromas, const Eigen::ArrayXXd::Index inNumOfDeletedChromas, const Eigen::ArrayXXd::Index inNumOfInsertedChromas) const;
const double getChordsWithUnknownWrong() const;
protected:
private:
const Eigen::ArrayXXd m_ConfusionMatrix;
const Eigen::ArrayXXd::Index m_NumOfChromas;
const Eigen::ArrayXXd::Index m_NumOfChordTypes;
const Eigen::ArrayXXd::Index m_NumOfChords;
Eigen::ArrayXd m_OnlyRoots;
Eigen::ArrayXd m_OnlyTypes;
const Eigen::ArrayXXd m_ChordsMatrix;
const bool m_HasTestCatchAllChords;
const bool m_HasRefNoChord;
Eigen::ArrayXXi m_CardinalityDiff;
Eigen::ArrayXXi m_NumOfWrongChromas;
};
#endif // #ifndef ChordEvaluationStats_h