This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_ringbuf_std_dev

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.