dcase_framework.data.DataBuffer¶
-
class
dcase_framework.data.DataBuffer(*args, **kwargs)[source]¶ Data buffer (FIFO)
Buffer can store data and meta data associated to it.
__init__ method.
Parameters: size : int
Number of item to store in the buffer Default value 10
-
__init__(*args, **kwargs)[source]¶ __init__ method.
Parameters: size : int
Number of item to store in the buffer Default value 10
Methods
__init__(\*args, \*\*kwargs)__init__ method. clear()Empty the buffer count()Buffer usage full()Buffer full get(key)Get item based on key key_exists(key)Check that key exists in the buffer set(key[, data, meta])Insert item to the buffer -