Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
nrf_dsp_moments.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
15#ifndef _NRF_DSP_STAT_MOMENTS_FUNCTIONS_H_
16#define _NRF_DSP_STAT_MOMENTS_FUNCTIONS_H_
17
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
41
46{
47 struct
48 {
50 int16_t var;
52 int16_t skew;
54 int16_t kur;
56
57 int16_t moments[3U];
59
64{
65 struct
66 {
68 int32_t var;
70 int32_t skew;
72 int32_t kur;
74
75 int32_t moments[3U];
77
88void nrf_dsp_moments_f32(const flt32_t* p_input,
89 uint16_t num,
92
104void nrf_dsp_moments_f32_s(const flt32_t* p_input,
105 uint16_t num,
106 size32_t stride,
109
120void nrf_dsp_moments_i8(const int8_t* p_input,
121 uint16_t num,
124
135void nrf_dsp_moments_i16(const int16_t* p_input,
136 uint16_t num,
139
140#ifdef __cplusplus
141}
142#endif
143
144#endif /* _NRF_DSP_STAT_MOMENTS_FUNCTIONS_H_ */
145
void nrf_dsp_moments_f32(const flt32_t *p_input, uint16_t num, nrf_dsp_stat_ctx_f32_t *p_ctx, nrf_dsp_moments_f32_t *p_m)
Calculate 3 higher statistical moments(Variance, Skewness, Kurtosis) of a floating-point vector.
union nrf_dsp_moments_i8_u nrf_dsp_moments_i8_t
INT8 statistical moments container.
union nrf_dsp_moments_i16_u nrf_dsp_moments_i16_t
INT16 statistical moments container.
void nrf_dsp_moments_f32_s(const flt32_t *p_input, uint16_t num, size32_t stride, nrf_dsp_stat_ctx_f32_t *p_ctx, nrf_dsp_moments_f32_t *p_m)
Calculate 3 higher statistical moments(Variance, Skewness, Kurtosis) of a floating-point vector.
union nrf_dsp_moments_f32_u nrf_dsp_moments_f32_t
Floating-point statistical moments container.
void nrf_dsp_moments_i16(const int16_t *p_input, uint16_t num, nrf_dsp_stat_ctx_i16_t *p_ctx, nrf_dsp_moments_i16_t *p_m)
Calculate 3 higher statistical moments(Variance, Skewness, Kurtosis) of a INT16 vector.
void nrf_dsp_moments_i8(const int8_t *p_input, uint16_t num, nrf_dsp_stat_ctx_i8_t *p_ctx, nrf_dsp_moments_i8_t *p_m)
Calculate 3 higher statistical moments(Variance, Skewness, Kurtosis) of a INT8 vector.
size_t size32_t
Architecture 32-bit size_t type definition.
Definition nrf_edgeai_ctypes.h:31
float flt32_t
32-bit floating-point type definition.
Definition nrf_edgeai_ctypes.h:21
Floating-point statistics reusable context, in which is used to store derived or intermediate metrics...
Definition nrf_dsp_types.h:85
INT16 statistics reusable context, in which is used to store derived or intermediate metrics to simpl...
Definition nrf_dsp_types.h:146
INT8 statistics reusable context, in which is used to store derived or intermediate metrics to simpli...
Definition nrf_dsp_types.h:125
flt32_t var
Definition nrf_dsp_moments.h:32
struct nrf_dsp_moments_f32_u::@90 moment
flt32_t moments[3U]
Definition nrf_dsp_moments.h:39
flt32_t skew
Definition nrf_dsp_moments.h:34
flt32_t kur
Definition nrf_dsp_moments.h:36
Floating-point statistical moments container.
Definition nrf_dsp_moments.h:28
int32_t moments[3U]
Definition nrf_dsp_moments.h:75
struct nrf_dsp_moments_i16_u::@92 moment
int32_t skew
Definition nrf_dsp_moments.h:70
int32_t var
Definition nrf_dsp_moments.h:68
int32_t kur
Definition nrf_dsp_moments.h:72
INT16 statistical moments container.
Definition nrf_dsp_moments.h:64
int16_t skew
Definition nrf_dsp_moments.h:52
int16_t kur
Definition nrf_dsp_moments.h:54
struct nrf_dsp_moments_i8_u::@91 moment
int16_t var
Definition nrf_dsp_moments.h:50
int16_t moments[3U]
Definition nrf_dsp_moments.h:57
INT8 statistical moments container.
Definition nrf_dsp_moments.h:46