CosineDistance.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 /*
3  QM DSP Library
4 
5  Centre for Digital Music, Queen Mary, University of London.
6  This file copyright 2008 Kurt Jacobson.
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2 of the
11  License, or (at your option) any later version. See the file
12  COPYING included with this distribution for more information.
13 */
14 
15 #ifndef QM_DSP_COSINEDISTANCE_H
16 #define QM_DSP_COSINEDISTANCE_H
17 
18 #include <vector>
19 #include <math.h>
20 
22 {
23 public:
26 
27  double distance(const std::vector<double> &v1,
28  const std::vector<double> &v2);
29 
30 protected:
32 };
33 
34 #endif
35 
double distance(const std::vector< double > &v1, const std::vector< double > &v2)