annotate dsp/rhythm/BeatSpectrum.h @ 515:08bcc06c38ec tip master

Remove fast-math
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 28 Jan 2020 15:27:37 +0000
parents 701233f8ed41
children
rev   line source
c@256 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
c@256 2
c@256 3 /*
c@256 4 QM DSP Library
c@256 5
c@256 6 Centre for Digital Music, Queen Mary, University of London.
c@256 7 This file copyright 2008 Kurt Jacobson and QMUL.
c@309 8
c@309 9 This program is free software; you can redistribute it and/or
c@309 10 modify it under the terms of the GNU General Public License as
c@309 11 published by the Free Software Foundation; either version 2 of the
c@309 12 License, or (at your option) any later version. See the file
c@309 13 COPYING included with this distribution for more information.
c@256 14 */
c@256 15
cannam@489 16 #ifndef QM_DSP_BEATSPECTRUM_H
cannam@489 17 #define QM_DSP_BEATSPECTRUM_H
c@256 18
c@256 19 #include <vector>
c@256 20
c@256 21 /**
c@256 22 * Given a matrix of "feature values", calculate a self-similarity
c@256 23 * vector. The resulting vector will have half as many elements as
c@256 24 * the number of columns in the matrix. This is based on the
c@256 25 * SoundBite rhythmic similarity code.
c@256 26 */
c@256 27
c@256 28 class BeatSpectrum
c@256 29 {
c@256 30 public:
c@257 31 BeatSpectrum() { }
c@257 32 ~BeatSpectrum() { }
c@256 33
c@256 34 std::vector<double> process(const std::vector<std::vector<double> > &inmatrix);
c@256 35
c@256 36 };
c@256 37
c@256 38 #endif
c@256 39
c@256 40