Execute Method (ApplySmoothing)
- Last UpdatedApr 08, 2026
- 1 minute read
Performs linear filtering (if configured) on the raw value from the remote to smooth out the data.
Equation used:
currentValue * filterConstant + previousValue * (1 - filterConstant);
Equation used:
currentValue * filterConstant + previousValue * (1 - filterConstant);
public IStepContext Execute(
IStepContext stepContext,
ICachedSettings cachedSettings
)
public:
IStepContext^ Execute(
IStepContext^ stepContext,
ICachedSettings^ cachedSettings
)
Parameters
- stepContext
- Context for krunching that contains information passed between steps.
- cachedSettings
- Cached configurations from RealTime database (RTDB) JSON files.
Return Value
The stepContext updated by the step.