Engee documentation

Downsample

Reduces the sampling frequency of the input signal by removing intermediate values.

blockType: Downsample

Path in the library:

/Signal Operations/Signal Operations/Downsample

Description

The Downsample block reduces the sampling rate of the input signal by removing intermediate values. The block treats each input element as a separate channel and resamples each such channel separately. The output sampling rate is K times lower than the input sampling rate, where K is the value of the Downsample factor parameter. The Downsample block oversamples the input by discarding K-1 values after each output value.

Ports

Input

Port_1 - input signal
vector | matrix

Input signal whose sampling rate is to be reduced.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool.

Support for complex numbers: Yes

Output

Port_1 - output signal
vector | matrix

Output signal with a sampling rate that is K times lower than the input sampling rate.

Data types: Float64.

Parameters

Downsample factor - downsampling factor
2 (by default) | `positive number `

An integer factor K specifying the ratio of the input sampling rate to the output sampling rate.

Initial conditions - initial value
0 (by default) | valid scalar | multiple

The initial value of the output signal. A scalar or array of the same size as the input is allowed.