Mercurial > hg > tipic
view src/CRP.h @ 54:83e91b13feb7 v1.0
Fix silly typo
author | Chris Cannam |
---|---|
date | Tue, 20 Jun 2017 15:27:08 +0100 |
parents | 00b6ae41efbe |
children | 9eab1b374344 |
line wrap: on
line source
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* Tipic Centre for Digital Music, Queen Mary, University of London. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See the file COPYING included with this distribution for more information. */ #ifndef CRP_H #define CRP_H #include "Types.h" #include "DCTReduce.h" //!!! Downsampling/temporal smoothing not yet implemented //!!! doc: this class has no history, can be used in more than one //!!! "channel" at once class CRP { public: struct Parameters { int coefficientsToDrop; bool applyLogCompression; double logFactor; double logAddTerm; int normP; // 0 = no normalisation, 1 = L^1, 2 = L^2 double normThresh; Parameters() : coefficientsToDrop(55), applyLogCompression(true), logFactor(1000.0), logAddTerm(1.0), normP(2), normThresh(1e-6) { } }; CRP(Parameters params); ~CRP(); RealBlock process(const RealBlock &in); private: Parameters m_params; DCTReduce m_dctReduce; }; #endif