15#ifndef _NRF_DSP_SUPPORT_SCALE_ZSCORE_H_
16#define _NRF_DSP_SUPPORT_SCALE_ZSCORE_H_
80#define nrf_dsp_scale_zscore_int_q(var, qfactor, mean, stddev) \
81 (((int32_t)(var - mean) * qfactor) / stddev)
91#define nrf_dsp_scale_zscore_float(var, mean, stddev) ((flt32_t)(var - mean) / stddev)
102#define nrf_dsp_scale_zscore_float_q(var, qfactor, mean, stddev) (((var - mean) * qfactor) / stddev)
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)
Z-score scaling of the INT8 vector ( y = (x - mean) / stddev )
void nrf_dsp_scale_zscore_f32(const flt32_t *p_input, uint16_t num, const flt32_t mean, const flt32_t stddev, flt32_t *p_output)
Z-score scaling of the floating-point vector ( y = (x - mean) / stddev )
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)
Z-score scaling of the INT16 vector ( y = (x - mean) / stddev )
float flt32_t
32-bit floating-point type definition.
Definition nrf_edgeai_ctypes.h:21