Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ nrf_dsp_clip

#define nrf_dsp_clip ( input,
min,
max )

#include <include/nrf_edgeai/dsp/support/nrf_dsp_clipping.h>

Value:
(((input) < (min)) ? (min) : (((input) > (max)) ? (max) : (input)))

Macro for clipping variable to the limit (min, max).

Parameters
[in]inputVariable for clipping
[in]minMinimum limit for the variable, value below will be clipped to this limit
[in]maxMaximum limit for the variable, value above will be clipped to this limit
Returns
Clipped variable