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

◆ nrf_dsp_clip_i8()

void nrf_dsp_clip_i8 ( int8_t * p_input,
uint16_t num,
const int8_t min,
const int8_t max )

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

Clips INT8 values to the limit (min, max)

Parameters
[in,out]p_inputPointer to the input vector
[in]numNumber of samples in the input vector
[in]minMinimum limit for the input samples, all value below will be clipped to this limit
[in]maxMaximum limit for the input samples, all value above will be clipped to this limit