Mercurial > hg > svcore
comparison base/ColumnOp.h @ 1837:1b688ab5f1b3
Unify various vectors to our base floatvec_t type; store columns in fft model cache at their desired height so we can return a reference (speeding up the peak-frequency spectrogram in particular)
author | Chris Cannam |
---|---|
date | Thu, 09 Apr 2020 11:22:55 +0100 |
parents | 48e9f538e6e9 |
children |
comparison
equal
deleted
inserted
replaced
1835:804dd0c06f0e | 1837:1b688ab5f1b3 |
---|---|
51 { | 51 { |
52 public: | 52 public: |
53 /** | 53 /** |
54 * Column type. | 54 * Column type. |
55 */ | 55 */ |
56 typedef std::vector<float> Column; | 56 typedef floatvec_t Column; |
57 | 57 |
58 /** | 58 /** |
59 * Scale the given column using the given gain multiplier. | 59 * Scale the given column using the given gain multiplier. |
60 */ | 60 */ |
61 static Column applyGain(const Column &in, double gain) { | 61 static Column applyGain(const Column &in, double gain) { |