Mercurial > hg > aimc
comparison trunk/src/Support/SignalBank.h @ 273:c26222c51fb7
- Fixed the python SWIG wrappers
- Added stub test for the Gaussian features, and test data
- Fixed build errors
author | tomwalters |
---|---|
date | Mon, 15 Feb 2010 20:37:26 +0000 |
parents | e14c70d1b171 |
children | 6b4921704eb1 |
comparison
equal
deleted
inserted
replaced
272:2147f317aedc | 273:c26222c51fb7 |
---|---|
52 /* \brief Initialize the signal bank with the same parameters, buffer size | 52 /* \brief Initialize the signal bank with the same parameters, buffer size |
53 * and centre frequencies as the input signal bank | 53 * and centre frequencies as the input signal bank |
54 */ | 54 */ |
55 bool Initialize(const SignalBank &input); | 55 bool Initialize(const SignalBank &input); |
56 bool Validate() const; | 56 bool Validate() const; |
57 inline const vector<float> &operator[](int channel) const; | 57 |
58 inline float sample(int channel, int index) const; | 58 inline const vector<float> &operator[](int channel) const { |
59 inline void set_sample(int channel, int index, float value); | 59 return signals_[channel]; |
60 }; | |
61 | |
62 float sample(int channel, int index) const; | |
63 void set_sample(int channel, int index, float value); | |
60 const deque<int> &strobes(int channel) const; | 64 const deque<int> &strobes(int channel) const; |
61 float sample_rate() const; | 65 float sample_rate() const; |
62 int buffer_length() const; | 66 int buffer_length() const; |
63 int start_time() const; | 67 int start_time() const; |
64 void set_start_time(int start_time); | 68 void set_start_time(int start_time); |