Mercurial > hg > aimc
diff 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 |
line wrap: on
line diff
--- a/src/Support/SignalBank.h Wed Feb 24 15:18:00 2010 +0000 +++ b/src/Support/SignalBank.h Thu Feb 25 22:02:00 2010 +0000 @@ -59,8 +59,14 @@ return signals_[channel]; }; - float sample(int channel, int index) const; - void set_sample(int channel, int index, float value); + inline float sample(int channel, int index) const { + return signals_[channel][index]; + } + + inline void set_sample(int channel, int index, float value) { + signals_[channel][index] = value; + } + int strobe(int channel, int index) const; int strobe_count(int channel) const; void AddStrobe(int channel, int time);