Repeat
Resampling the input signal at a higher rate by repeating values.
Description
The Repeat block increases the sampling rate of each channel of the input signal (of size Mi by N) to a frequency L times the sampling rate of the input signal. To do this, the block repeats each consecutive input sample L times at the output. The integer L
is specified in the Repetition count parameter, L or via the L input port.
Ports
Input
in - input signal
scalar
| vector
| matrix
Input signal as a real scalar, vector or matrix.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, UInt8
, UInt16
, UInt32
, UInt64
, Bool
.
This port is unnamed until you set the Repetition count source parameter to Input port
.
Support for complex numbers: Yes
L - number of repetitions
positive integer ≤ Lmax
.
The input signal of the number of repetitions L as a positive integer less than or equal to the value set in Maximum repetition factor, Lmax.
Dependencies
To use this port, set the Repetition count source parameter to Input port
.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, UInt8
, UInt16
, UInt32
, UInt64
, Bool
.
Support for complex numbers: Yes
Output
Port_1 - output signal
scalar
| vector
| matrix
Output signal with a sampling rate that is L
times the input sampling rate.
The Repeat block shows an output signal having the same data type and dimension as the input signal. The size of the output signal depends on the value of the number of repetitions and the Rate options setting.
When Repetition count, L is set to L
and Rate is set to:
-
Enforce single-rate processing
- the block maintains the input sampling rate by increasing the output frame size by L times. -
Allow multirate processing
- the block will resample the signal so that the output sample rate is L times the input sample rate. The output signal has the same frame size as the input one.
When the number of repeats is input through the L input port, the Rate options parameter is automatically set to `Enforce single-rate processing'. In this case, the unit maintains the sampling rate of the input signal at the output, increasing the output frame size by a factor of L.
The output signal is a variable size signal if one or both conditions are met:
-
A variable-size signal is input.
-
The number of repetitions is supplied via port L.
Data types: Float64
.
Support for complex numbers: Yes
Parameters
Repetition count source - the source of the number of repetitions
Dialog parameter (by default)
| Input port
Repetition count source:
-
Dialog parameter
- the number of repetitions is set in the Repetition count parameter, L. -
Input port
- the number of repetitions will be received through the L input port.
Repetition count, L - number of repetitions
5 (by default)
| positive number
.
Repetition count L as a positive integer. This value represents the number of times the block repeats the input value. It is the factor by which the block increases the output frame size or sampling rate.
Dependencies
To use this parameter, set the Repetition count source parameter to Dialog
.
Maximum repetition factor, Lmax is the number of repetitions
16 (by default)
| positive number ≥ 1
.
The maximum repetition factor Lmax as a positive integer greater than or equal to 1
. The number of repetitions set via the L input port must be less than or equal to Lmax.
Dependencies
To use this parameter, set the Repetition count source parameter to Input port
.
Input processing - method of input signal processing
Columns as channels (frame based) (by default)
| Elements as channels (sample based)
.
Specify how the block should process the input. You can set this parameter to one of the following options:
-
Columns as channels (frame based)
-when you select this option, the block processes each column of input as a separate channel. In this mode, the block can perform single-speed or multi-speed processing. -
Elements as channels (sample based)
-when you select this option, the block processes each input element as a separate channel. In this mode, the block always performs multirate processing.
Rate options
- the method by which the block increases the sampling rate of the input
`Enforce single-rate processing (by default)
| Allow multirate processing
.
`Enforce single-rate processing (by default)
Specify the method by which the block upsamples the input. You can select one of the following options:
-
Enforce single-rate processing
- when you select this option, the block maintains the input sample rate by increasing the output frame size by a factor of L. To select this option, you must set the Input processing parameter to Columns as channels (frame based). -
`Allow multirate processing' - when you select this option, the unit will resample the signal so that the output sample rate is `L' times faster than the input.
Initial conditions - the initial value is
0.0 (by default)
| scalar
| matrix
Specify the value with which the block is initialised for cases of non-zero waiting time as a scalar or matrix.