Difference between revisions of "Smooth expression"
From Castle Wiki
(add smooth expression) |
(No difference)
|
Latest revision as of 13:49, 19 October 2022
The smooth expression returns a value which is smoothed over time.
Given a number that changes over time, N(t), and a smoothing parameter, this expression updates its output Y each step with the following:
Y(0) = N(0)
Y(t) = Y(t - 1) + dt * (N(t) - Y(t - 1)) / smoothing