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

◆ nrf_dsp_scale_zscore_i8()

void nrf_dsp_scale_zscore_i8 ( const int8_t * p_input,
uint16_t num,
const int8_t mean,
const int8_t stddev,
int8_t * p_output )

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

Z-score scaling of the INT8 vector ( y = (x - mean) / stddev )

Note
In order not to lose accuracy when dividing, the subtraction result (x - mean) is multiplied by NRF_DSP_INT8_QFACTOR
Parameters
[in]p_inputPointer to the input vector
[in]numNumber of samples in input vector
[in]meanMean scaling factor
[in]stddevStandard deviation scaling factor
[out]p_outputPointer to the output scaled vector