ref #6 -refactoring
- added interp1 - added peak finder - added bpm estimation - added findbestaxis
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user