sdynpy.signal_processing.sdynpy_buffer.CircularBufferWithOverlap
- class CircularBufferWithOverlap(buffer_size, block_size, overlap_size, dtype='float', data_shape=())[source]
Bases:
object
- __init__(buffer_size, block_size, overlap_size, dtype='float', data_shape=())[source]
Initialize the circular buffer.
Parameters: - buffer_size: Total size of the circular buffer. - block_size: Number of samples written in each block. - overlap_size: Number of samples from the previous block to include in the read.
Methods
__init__
(buffer_size, block_size, overlap_size)Initialize the circular buffer.
read
()write
(data)Write a block of data to the circular buffer.
write_get_data
(data)Writes a block of data and then returns a block if available