ReferenceAvailable
Control Function
Define a reusable input expression for a controlled or time-varying model.
Define a reusable input expression for a controlled or time-varying model.
Where to find it
Definitions → Functions
How to use it
Choose a function type, name its arguments and supply its expression or data.
Settings and initial values
| Setting | Initial value |
|---|---|
| functionName | control |
| arguments | i, n, v0, v1, ... |
| expression | control(i, n, v0, v1) |
| source | `0, 0 |
| 1, 90 | |
| 2, 180 | |
| 3, 270` | |
| description | Discrete control palette. control(i, n, v0, v1, ...) rounds i, clamps it to n choices, and returns the selected value. |
| enabled | true |
Result
Call the function by name in a compatible expression.
Troubleshooting
Check argument names and units. For stochastic inputs, compare repeated runs or a fixed seed where available; a single trace is not a statistical validation.