diff src/Matcher.h @ 211:6373d14deace

Clip cost when adding increment in direction comparison as well as when updating
author Chris Cannam
date Fri, 27 Feb 2015 14:10:50 +0000
parents 010b91e44098
children 175c8f044e7c
line wrap: on
line diff
--- a/src/Matcher.h	Fri Feb 27 14:00:48 2015 +0000
+++ b/src/Matcher.h	Fri Feb 27 14:10:50 2015 +0000
@@ -278,11 +278,14 @@
 
     void calcAdvance();
 
+    /**
+     * Add the given distance increment to the given path cost, and
+     * return the result clipped (if necessary) at MaxPathCost.
+     */
+    pathcost_t addToCost(pathcost_t cost, pathcost_t increment);
+    
     /** Points to the other performance with which this one is being
-     *  compared.  The data for the distance metric and the dynamic
-     *  time warping is shared between the two matchers. In the
-     *  original version, only one of the two performance matchers
-     *  contained the distance metric. (See <code>first</code>)
+     *  compared.  (See <code>m_firstPM</code>)
      */
     Matcher *m_otherMatcher;