Mercurial > hg > aimc
comparison trunk/src/Modules/Strobes/ModuleParabola.h @ 279:f469d936337f
- Replacing tabs with spaces for indentation
author | tomwalters |
---|---|
date | Thu, 18 Feb 2010 20:04:04 +0000 |
parents | 6b4921704eb1 |
children | e55d0c225a57 |
comparison
equal
deleted
inserted
replaced
278:5b8b9ea1218a | 279:f469d936337f |
---|---|
40 */ | 40 */ |
41 namespace aimc { | 41 namespace aimc { |
42 using std::vector; | 42 using std::vector; |
43 class ModuleParabola : public Module { | 43 class ModuleParabola : public Module { |
44 public: | 44 public: |
45 ModuleParabola(Parameters *params); | 45 ModuleParabola(Parameters *params); |
46 virtual ~ModuleParabola(); | 46 virtual ~ModuleParabola(); |
47 void Process(const SignalBank& input); | 47 void Process(const SignalBank& input); |
48 private: | 48 private: |
49 /*! \brief Prepare the module | 49 /*! \brief Prepare the module |
50 * \param input Input signal bank | 50 * \param input Input signal bank |
51 * \param output true on success false on failure | 51 * \param output true on success false on failure |
52 */ | 52 */ |
53 virtual bool InitializeInternal(const SignalBank& input); | 53 virtual bool InitializeInternal(const SignalBank& input); |
54 | 54 |
55 virtual void ResetInternal(); | 55 virtual void ResetInternal(); |
56 | 56 |
57 | 57 |
58 //! \brief Number of samples over which the strobe should be decayed to zero | 58 //! \brief Number of samples over which the strobe should be decayed to zero |
59 int strobe_decay_samples_; | 59 int strobe_decay_samples_; |
60 | 60 |
61 /*! \brief Current strobe thresholds, one for each bank channel. | 61 /*! \brief Current strobe thresholds, one for each bank channel. |
62 * | 62 * |
63 * This value is decayed over time. | 63 * This value is decayed over time. |
64 */ | 64 */ |
65 vector<float> threshold_; | 65 vector<float> threshold_; |
66 | 66 |
67 /*! \brief Signal value at the last strobe, one for each bank channel. | 67 /*! \brief Signal value at the last strobe, one for each bank channel. |
68 * | 68 * |
69 * This value is not decayed over time. | 69 * This value is not decayed over time. |
70 */ | 70 */ |
71 vector<float> last_threshold_; | 71 vector<float> last_threshold_; |
72 | 72 |
73 //! \brief Parabola height parameter | 73 //! \brief Parabola height parameter |
74 float height_; | 74 float height_; |
75 | 75 |
76 //! \brief Parabola width paramters | 76 //! \brief Parabola width paramters |