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

◆ nrf_dsp_scale_zscore_i16()

void nrf_dsp_scale_zscore_i16 ( const int16_t * p_input,
uint16_t num,
const int16_t mean,
const int16_t stddev,
int16_t * p_output )

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

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

Note
In order not to lose accuracy when dividing, the subtraction result (x - mean) is multiplied by NRF_DSP_INT16_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