hack gt final code
Dependencies: 4DGL-uLCD-SE BMP085 PinDetect SDFileSystem mbed wave_player
spikes.h@14:23390a020d1c, 2016-09-28 (annotated)
- Committer:
- otis22894
- Date:
- Wed Sep 28 00:16:16 2016 +0000
- Revision:
- 14:23390a020d1c
- Parent:
- 12:b301cb3cef44
initial commit;
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 | }; |