#include <rapidStream.h>
◆ rapidStream() [1/2]
Create a circular buffer with 3 elements.
◆ rapidStream() [2/2]
Create a circular buffer with an arbitrary number of elements.
- Parameters
-
int | number of elements to hold in the buffer |
◆ ~rapidStream()
◆ acceleration()
Calculate the second-order difference (aka acceleration) over the last three inputs.
- Returns
- double: acceleration over the last three inputs.
◆ bayesFilter()
Non-linear Baysian filtering for EMG envelope extraction.
- Returns
- current envelope value
◆ bayesSetDiffusion()
◆ bayesSetJumpRate()
◆ bayesSetMVC()
◆ clear()
Resets all the values in the buffer to zero.
◆ maxAcceleration()
Calculate the maximum second-order difference over consecutive inputs in the buffer.
- Returns
- double: maximum acceleration.
◆ maximum()
Find the maximum value in the buffer.
- Returns
- double: maximum.
◆ maxVelocity()
Calculate the maximum first-order difference over consecutive inputs in the buffer.
- Returns
- double: maximum velocity.
◆ mean()
Calculate the mean of all values in the buffer.
- Returns
- double: mean.
◆ minAcceleration()
Calculate the minimum second-order difference over consecutive inputs in the buffer.
- Returns
- double: minimum acceleration.
◆ minimum()
Find the minimum value in the buffer.
- Returns
- double: minimum.
◆ minVelocity()
Calculate the minimum first-order difference over consecutive inputs in the buffer.
- Returns
- double: minimum velocity.
◆ numZeroCrossings()
Count the number of zero crossings in the buffer.
- Returns
- int: number of zero crossings.
◆ pushToWindow()
Add a value to a circular buffer whose size is defined at creation.
- Parameters
-
double | value to be pushed into circular buffer. |
◆ rms()
Calculate the root mean square of the values in the buffer
- Returns
- double: rms
◆ standardDeviation()
Calculate the standard deviation of all values in the buffer.
- Returns
- double: standard deviation.
◆ sum()
Calculate the sum of all values in the buffer.
- Returns
- T: sum.
◆ velocity()
Calculate the first-order difference (aka velocity) between the last two inputs.
- Returns
- double: difference between last two inputs.
The documentation for this class was generated from the following files: