Skip to content

← signal_processing package

Decimate

Decimate (subsample) the signal by an integer factor.

This filter implements no anti-aliasing filter -- that is, you need to precede this filter by a low-pass filter (e.g., FIR or IIR) which cuts out below half of the new sampling rate. Important: If no anti-aliasing filter is used, then frequency content above the new sampling rate will be mirrored and appear as additional noise in the resampled signal. If this filter is ran along the time axis, it will maintain an internal state to ensure that every k'th sample is picked even across chunk boundaries. Version 1.0.1

Ports/Properties

data

Data to process.

  • verbose name: Data
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: INOUT

factor

Decimation factor. Only every k'th data value will be transferred into the output.

  • verbose name: Decimate By Factor
  • default value: 2
  • port type: IntPort
  • value type: int (can be None)

axis

Axis along which to decimate.

  • verbose name: Decimate Along Axis
  • default value: time
  • port type: ComboPort
  • value type: str (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

  • verbose name: Set Breakpoint (Debug Only)
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

  • verbose name: Metadata
  • default value: {}
  • port type: DictPort
  • value type: dict (can be None)