Engee documentation

Difference

Calculates the signal change in one calculation step.

difference

Description

Block Difference calculates the difference between the current and previous input value.

Ports

Input

# IN_1 — input signal
scalar | vector | matrix

Details

Input signal as a scalar, vector or matrix.

Data types

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

Complex numbers support

Yes

Output

# OUT_1 — output signal
vector | matrix

Details

The difference between the current and previous value of a signal at the input as a scalar, vector or matrix.

Data types

Float64.

Complex numbers support

Yes

Parameters

Main

# Initial condition for previous input — initial state
Scalar / array of real and/or complex numbers

Details

Set the initial value for the previous step.

Default value

0.0

Program usage name

ICPrevInput

Tunable

Yes

Evaluatable

Yes

Additional options

C code generation: Yes