timeflux.nodes.window


Sliding windows

window

class timeflux.nodes.window.Window(length, step=None, index='time', epochs=False)[source]

Bases: timeflux.core.node.Node

Provide sliding windows.

Variables

i (Port) – Default data input, expects DataFrame.

Parameters
  • length (float|int) – The length of the window, in seconds or samples.

  • step (float|int|None) – The minimal sliding step, in seconds or samples. If None (the default), the step will be set to the length of the window. If 0, the data will be sent as soon as it is available.

  • index (string) – If “time” (the default), the length of the window is in seconds. If “sample”, the length of the window is in samples.

  • epochs (boolean) – Whether the defaut output should be bound to an numbered output, thus simulating an epoch. This could be useful if piped to a Machine Learning node.

Create instance and initialize the logger.

update(self)[source]
class timeflux.nodes.window.TimeWindow(length, step=None)[source]

Bases: timeflux.core.node.Node

Create instance and initialize the logger.

update(self)[source]
class timeflux.nodes.window.SampleWindow(length, step=None)[source]

Bases: timeflux.core.node.Node

Create instance and initialize the logger.

update(self)[source]