-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSimilarityScoreKey.h
40 lines (27 loc) · 926 Bytes
/
SimilarityScoreKey.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
#ifndef SimilarityScoreKey_h
#define SimilarityScoreKey_h
//============================================================================
/**
Class representing .
@author Johan Pauwels
@date 20100914
*/
//============================================================================
#include <Eigen/Core>
#include "SimilarityScore.h"
#include "MusOO/Key.h"
class SimilarityScoreKey : public SimilarityScore<MusOO::Key>
{
public:
/** Default constructor. */
SimilarityScoreKey(const std::string& inScoreSelect);
/** Destructor. */
virtual ~SimilarityScoreKey();
virtual const double score(const MusOO::Key& inRefKey, const MusOO::Key& inTestKey);
EIGEN_MAKE_ALIGNED_OPERATOR_NEW //see http://eigen.tuxfamily.org/dox/StructHavingEigenMembers.html
protected:
private:
const size_t calcKeyIndex(const MusOO::Key& inKey);
Eigen::Array<double, 2, 12> m_ScoreMatrix;
};
#endif // #ifndef SimilarityScoreKey_h