Mercurial > hg > vamp-tempogram
annotate AutocorrelationProcessor.h @ 39:716f797e2025
Further Makefile fixes
author | Chris Cannam |
---|---|
date | Fri, 12 Sep 2014 15:09:38 +0100 |
parents | 723af5b3303a |
children | 4cf2d163127b |
rev | line source |
---|---|
c@25 | 1 // |
c@25 | 2 // AutocorrelationProcessor.h |
c@25 | 3 // Tempogram |
c@25 | 4 // |
c@25 | 5 // Created by Carl Bussey on 20/08/2014. |
c@25 | 6 // Copyright (c) 2014 Carl Bussey. All rights reserved. |
c@25 | 7 // |
c@25 | 8 |
c@25 | 9 #ifndef __Tempogram__Autocorrelation__ |
c@25 | 10 #define __Tempogram__Autocorrelation__ |
c@25 | 11 |
c@25 | 12 #include <iostream> |
c@25 | 13 #include <vector> |
c@25 | 14 |
c@25 | 15 typedef std::vector< std::vector<float> > AutoCorrelation; |
c@25 | 16 |
c@25 | 17 class AutocorrelationProcessor{ |
c@25 | 18 public: |
c@26 | 19 AutocorrelationProcessor(const size_t &windowLength, const unsigned int &hopSize); |
c@26 | 20 ~AutocorrelationProcessor(); |
c@25 | 21 AutoCorrelation process(float * input, const size_t &inputLength) const; |
c@25 | 22 private: |
c@25 | 23 size_t m_windowLength; |
c@25 | 24 unsigned int m_hopSize; |
c@25 | 25 }; |
c@25 | 26 |
c@25 | 27 #endif /* defined(__Tempogram__Autocorrelation__) */ |