diff maths/CosineDistance.h @ 505:930b5b0f707d

Merge branch 'codestyle-and-tidy'
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 05 Jun 2019 12:55:15 +0100
parents bb78ca3fe7de
children
line wrap: on
line diff
--- a/maths/CosineDistance.h	Thu May 30 16:18:13 2019 +0100
+++ b/maths/CosineDistance.h	Wed Jun 05 12:55:15 2019 +0100
@@ -1,5 +1,4 @@
 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
-
 /*
     QM DSP Library
 
@@ -13,21 +12,20 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef COSINEDISTANCE_H
-#define COSINEDISTANCE_H
+#ifndef QM_DSP_COSINEDISTANCE_H
+#define QM_DSP_COSINEDISTANCE_H
 
 #include <vector>
 #include <math.h>
 
-using std::vector;
-
 class CosineDistance
 {
 public:
     CosineDistance() { }
     ~CosineDistance() { }
 
-    double distance(const vector<double> &v1, const vector<double> &v2);
+    double distance(const std::vector<double> &v1,
+                    const std::vector<double> &v2);
 
 protected:
     double dist, dDenTot, dDen1, dDen2, dSum1;