Source: GitHub
Signature¶
class sdynpy.signal_processing.sdynpy_buffer.CircularBufferWithOverlap(buffer_size, block_size, overlap_size, dtype='float', data_shape=())Methods¶
| Name | Summary |
|---|---|
__init__ | Initialize the circular buffer. |
read | |
report_buffer_state | |
write | Write a block of data to the circular buffer. |
write_get_data | Writes a block of data and then returns a block if available |
__init__¶
Source: GitHub
def sdynpy.signal_processing.sdynpy_buffer.CircularBufferWithOverlap.__init__(self, buffer_size, block_size, overlap_size, dtype='float', data_shape=())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.
read¶
Source: GitHub
def sdynpy.signal_processing.sdynpy_buffer.CircularBufferWithOverlap.read(self, read_remaining=False)report_buffer_state¶
Source: GitHub
def sdynpy.signal_processing.sdynpy_buffer.CircularBufferWithOverlap.report_buffer_state(self)write¶
Source: GitHub
def sdynpy.signal_processing.sdynpy_buffer.CircularBufferWithOverlap.write(self, data)Write a block of data to the circular buffer.
Parameters:
data: Array to write to the buffer.
write_get_data¶
Source: GitHub
def sdynpy.signal_processing.sdynpy_buffer.CircularBufferWithOverlap.write_get_data(self, data, read_remaining=False)Writes a block of data and then returns a block if available
Parameters:
data: Array to write to the buffer.