Appearance
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
| Name | Direction | Value type | Notes |
|---|---|---|---|
in | input | double | |
out | output | double |
Parameters
| Name | Label | Type | Default | Units | Description |
|---|---|---|---|---|---|
gain | K | double | 1 | — |
Used in samples
Implemented in C++ class SimCompCtlGain (components/control/CSim_comp_ctl_gain/sim_comp_ctl_gain.h).