ezmsg.sigproc.decimate#
Decimation (downsample with anti-alias filtering).
Classes
- class ChebyForDecimate(*args, settings=None, **kwargs)[source]#
Bases:
BaseTransformerUnit[ChebyshevFilterSettings,AxisArray,AxisArray,ChebyForDecimateTransformer]- Parameters:
settings (Settings | None)
- SETTINGS#
alias of
ChebyshevFilterSettings
- class ChebyForDecimateTransformer(*args, **kwargs)[source]#
Bases:
ChebyshevFilterTransformer[tuple[ndarray[tuple[Any, …],dtype[_ScalarT]],ndarray[tuple[Any, …],dtype[_ScalarT]]] |ndarray[tuple[Any, …],dtype[_ScalarT]]]- A
ChebyshevFilterTransformerwith a design filter method that additionally accepts a target sampling rate, and if the target rate cannot be achieved it returns None, else it returns the filter coefficients.
- A
- class Decimate(*args, settings=None, **kwargs)[source]#
Bases:
CollectionA
Collectionchaining aFilternode configured as a lowpass Chebyshev filter and aDownsamplenode.- Parameters:
settings (Settings | None)
- SETTINGS#
alias of
DownsampleSettings
- INPUT_SIGNAL = InputStream:unlocated[AxisArray]()#
- OUTPUT_SIGNAL = OutputStream:unlocated[AxisArray](self.num_buffers=32, self.force_tcp=False)#
- FILTER = <ezmsg.sigproc.decimate.ChebyForDecimate object>#
- DOWNSAMPLE = <ezmsg.sigproc.downsample.Downsample object>#
- configure()[source]#
A lifecycle hook that runs when the Collection is instantiated.
This is the best place to call
Unit.apply_settings()on each member Unit of the Collection. Override this method to perform collection-specific configuration of child components.- Return type:
None
- network()[source]#
Override this method and have the definition return a NetworkDefinition which defines how InputStreams and OutputStreams from member Units will be connected.
The NetworkDefinition specifies the message routing between components by connecting output streams to input streams.
- Returns:
Network definition specifying stream connections
- Return type:
NetworkDefinition