Mercurial > hg > qm-dsp
comparison dsp/onsets/DetectionFunction.h @ 280:9c403afdd9e9
* Various fixes related to the bar estimator code
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Tue, 10 Feb 2009 16:37:11 +0000 |
parents | c8908cdc8c32 |
children | e5907ae6de17 |
comparison
equal
deleted
inserted
replaced
279:c8908cdc8c32 | 280:9c403afdd9e9 |
---|---|
36 { | 36 { |
37 public: | 37 public: |
38 double* getSpectrumMagnitude(); | 38 double* getSpectrumMagnitude(); |
39 DetectionFunction( DFConfig Config ); | 39 DetectionFunction( DFConfig Config ); |
40 virtual ~DetectionFunction(); | 40 virtual ~DetectionFunction(); |
41 double process( double* TDomain ); | 41 double process( const double* TDomain ); |
42 double process( double* magnitudes, double* phases ); | 42 double process( const double* magnitudes, const double* phases ); |
43 | 43 |
44 private: | 44 private: |
45 void whiten(); | 45 void whiten(); |
46 double runDF(); | 46 double runDF(); |
47 | 47 |