comparison src/Support/SignalBank.h @ 32:9122efd2b227

-New AIMCopy main for the SSI features (temporary hack till I get a working module load system) -LocalMax strobe criterion. This is faster and better than the parabola version, which still seems buggy. -Noise generator module. Adds noise to a signal. Uses boost for the random number generator. -New options for the SSI -Slice now respects all its flags (oops!). -MATLAB functions for visualisation -Scripts for generating data to view in MATLAB -Script to download and build HTK - useful for running experiments
author tomwalters
date Thu, 25 Feb 2010 22:02:00 +0000
parents 491b1b1d1dc5
children c5f5e9569863
comparison
equal deleted inserted replaced
31:fa06bfacf004 32:9122efd2b227
57 57
58 inline const vector<float> &operator[](int channel) const { 58 inline const vector<float> &operator[](int channel) const {
59 return signals_[channel]; 59 return signals_[channel];
60 }; 60 };
61 61
62 float sample(int channel, int index) const; 62 inline float sample(int channel, int index) const {
63 void set_sample(int channel, int index, float value); 63 return signals_[channel][index];
64 }
65
66 inline void set_sample(int channel, int index, float value) {
67 signals_[channel][index] = value;
68 }
69
64 int strobe(int channel, int index) const; 70 int strobe(int channel, int index) const;
65 int strobe_count(int channel) const; 71 int strobe_count(int channel) const;
66 void AddStrobe(int channel, int time); 72 void AddStrobe(int channel, int time);
67 void ResetStrobes(int channel); 73 void ResetStrobes(int channel);
68 float sample_rate() const; 74 float sample_rate() const;