ref #6 -refactoring

- added interp1
- added peak finder
- added bpm estimation
- added findbestaxis
This commit is contained in:
toni
2017-12-17 00:35:57 +01:00
parent efa6f95972
commit 709a846a91
9 changed files with 793 additions and 305 deletions

View File

@@ -34,6 +34,8 @@ public class BpmEstimator implements SensorEventListener {
if(mAccelerometerWindowBuffer.isNextWindowReady()){
//TODO: calculate average samplerate using the window - interpolation of sensordata would be better i think
//int randomNum = ThreadLocalRandom.current().nextInt(0, 240 + 1);
long diff = mAccelerometerWindowBuffer.getYongest().ts - mAccelerometerWindowBuffer.getOldest().ts;