Function rc_ringbuf_std_dev#
Defined in File ring_buffer.h
Function Documentation#
-
double rc_ringbuf_std_dev(rc_ringbuf_t buf)#
Returns the standard deviation of all values in the ring buffer.
Note that if the buffer has not yet been filled completely before calling this, then the starting values of 0.0f in the unfilled portion of the buffer will still be part of the calculation.
- Parameters:
buf – [in] Pointer to user’s buffer
- Returns:
Returns the standard deviation of all values in the ring buffer.