annotate dsp/tonal/ChangeDetectionFunction.h @ 209:ccd2019190bf msvc

Some MSVC fixes, including (temporarily, probably) renaming the FFT source file to avoid getting it mixed up with the Vamp SDK one in our object dir
author Chris Cannam
date Thu, 01 Feb 2018 16:34:08 +0000
parents e5907ae6de17
children cbe668c7d724
rev   line source
cannam@0 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
cannam@0 2
cannam@0 3 /*
cannam@0 4 QM DSP Library
cannam@0 5
cannam@0 6 Centre for Digital Music, Queen Mary, University of London.
cannam@0 7 This file copyright 2006 Martin Gasser.
Chris@84 8
Chris@84 9 This program is free software; you can redistribute it and/or
Chris@84 10 modify it under the terms of the GNU General Public License as
Chris@84 11 published by the Free Software Foundation; either version 2 of the
Chris@84 12 License, or (at your option) any later version. See the file
Chris@84 13 COPYING included with this distribution for more information.
cannam@0 14 */
cannam@0 15
cannam@0 16 #ifndef _CHANGEDETECTIONFUNCTION_
cannam@0 17 #define _CHANGEDETECTIONFUNCTION_
cannam@0 18
cannam@50 19 //#define DEBUG_CHANGE_DETECTION_FUNCTION 1
cannam@0 20
cannam@0 21 #include "TCSgram.h"
cannam@0 22
cannam@0 23 #include <valarray>
cannam@0 24 using std::valarray;
cannam@0 25
cannam@0 26 typedef valarray<double> ChangeDistance;
cannam@0 27
cannam@0 28 struct ChangeDFConfig
cannam@0 29 {
cannam@0 30 int smoothingWidth;
cannam@0 31 };
cannam@0 32
cannam@0 33 class ChangeDetectionFunction
cannam@0 34 {
cannam@0 35 public:
cannam@0 36 ChangeDetectionFunction(ChangeDFConfig);
cannam@0 37 ~ChangeDetectionFunction();
cannam@0 38 ChangeDistance process(const TCSGram& rTCSGram);
cannam@0 39 private:
cannam@0 40 void setFilterWidth(const int iWidth);
cannam@0 41
cannam@0 42 private:
cannam@0 43 valarray<double> m_vaGaussian;
cannam@0 44 double m_dFilterSigma;
cannam@0 45 int m_iFilterWidth;
cannam@0 46 };
cannam@0 47
cannam@0 48 #endif // _CHANGDETECTIONFUNCTION_