hack gt final code
Dependencies: 4DGL-uLCD-SE BMP085 PinDetect SDFileSystem mbed wave_player
spikes.h@12:b301cb3cef44, 2014-09-21 (annotated)
- Committer:
- otis22894
- Date:
- Sun Sep 21 11:05:21 2014 +0000
- Revision:
- 12:b301cb3cef44
TIME: 7:05AM
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
otis22894 | 12:b301cb3cef44 | 1 | #include "mbed.h" |
otis22894 | 12:b301cb3cef44 | 2 | |
otis22894 | 12:b301cb3cef44 | 3 | class SpikeFinder { |
otis22894 | 12:b301cb3cef44 | 4 | public: |
otis22894 | 12:b301cb3cef44 | 5 | int numOld; |
otis22894 | 12:b301cb3cef44 | 6 | int numNew; |
otis22894 | 12:b301cb3cef44 | 7 | float stdDevs; |
otis22894 | 12:b301cb3cef44 | 8 | SpikeFinder(int numOld, int numNew, float stdDevs); |
otis22894 | 12:b301cb3cef44 | 9 | void addSample(double newSample); |
otis22894 | 12:b301cb3cef44 | 10 | bool lowSpikeFound(); |
otis22894 | 12:b301cb3cef44 | 11 | bool highSpikeFound(); |
otis22894 | 12:b301cb3cef44 | 12 | void reset(); |
otis22894 | 12:b301cb3cef44 | 13 | }; |