Skip to content

Gain

Scales a double signal by a constant: out = K * in. Use for unit conversions, sign flips, and proportional control terms.

Category: Math

Keywords: K, scale, amplifier, amplify, linear, proportional, P

Ports

NameDirectionValue typeNotes
ininputdouble
outoutputdouble

Parameters

NameLabelTypeDefaultUnitsDescription
gainKdouble1

Used in samples


Implemented in C++ class SimCompCtlGain (components/control/CSim_comp_ctl_gain/sim_comp_ctl_gain.h).

Released under the MIT License.