diff dsp/onsets/DetectionFunction.cpp @ 16:2e3f5d2d62c1

* Move dsp/maths to maths ; bring PCA and HMM across from Soundbite
author cannam
date Wed, 09 Jan 2008 10:31:29 +0000
parents 68801ecbab6a
children 38bf09927942
line wrap: on
line diff
--- a/dsp/onsets/DetectionFunction.cpp	Wed Nov 21 16:53:51 2007 +0000
+++ b/dsp/onsets/DetectionFunction.cpp	Wed Jan 09 10:31:29 2008 +0000
@@ -144,10 +144,6 @@
     case DF_BROADBAND:
         retVal = broadband( m_halfLength, m_magnitude);
         break;
-
-    case DF_POWER:
-        retVal = power( m_halfLength, m_magnitude );
-        break;
     }
 	
     return retVal;
@@ -269,15 +265,6 @@
     return val;
 }        
 
-double DetectionFunction::power(unsigned int length, double *src)
-{
-    double val = 0;
-    for (unsigned int i = 0; i < length; ++i) {
-        val += src[i];
-    }
-    return val;
-}        
-
 double* DetectionFunction::getSpectrumMagnitude()
 {
     return m_magnitude;