Edge AI Add-on API 3.0.0
Loading...
Searching...
No Matches
nrf_dsp_lrp.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_LRP_FUNCTIONS_H_
16#define _NRF_DSP_STAT_LRP_FUNCTIONS_H_
17
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
25 /* Slope of linear regression */
27
28 /* Intercept of linear regression */
31
33 /* Slope of linear regression */
34 int32_t slope;
35
36 /* Intercept of linear regression */
37 int32_t intercept;
39
41 /* Slope of linear regression */
42 int16_t slope;
43
44 /* Intercept of linear regression */
45 int16_t intercept;
47
58void nrf_dsp_lrp_f32(const flt32_t *p_input,
59 uint16_t num,
62
74void nrf_dsp_lrp_i16(const int16_t *p_input,
75 uint16_t num,
78
90void nrf_dsp_lrp_i8(const int8_t *p_input,
91 uint16_t num,
94
95#ifdef __cplusplus
96}
97#endif
98
99#endif /* _NRF_DSP_STAT_LRP_FUNCTIONS_H_ */
100
struct nrf_dsp_linear_reg_params_f32_s nrf_dsp_linear_reg_params_f32_t
struct nrf_dsp_linear_reg_params_i8_s nrf_dsp_linear_reg_params_i8_t
void nrf_dsp_lrp_i16(const int16_t *p_input, uint16_t num, nrf_dsp_linear_reg_params_i16_t *p_params, nrf_dsp_stat_ctx_i16_t *p_ctx)
Calculate Linear Regression Parameters (Slope, Intercept) of a INT16 fixed-point vector.
struct nrf_dsp_linear_reg_params_i16_s nrf_dsp_linear_reg_params_i16_t
void nrf_dsp_lrp_f32(const flt32_t *p_input, uint16_t num, nrf_dsp_linear_reg_params_f32_t *p_params, nrf_dsp_stat_ctx_f32_t *p_ctx)
Calculate Linear Regression Parameters (Slope, Intercept) of a floating-point vector.
void nrf_dsp_lrp_i8(const int8_t *p_input, uint16_t num, nrf_dsp_linear_reg_params_i8_t *p_params, nrf_dsp_stat_ctx_i8_t *p_ctx)
Calculate Linear Regression Parameters (Slope, Intercept) of a INT8 fixed-point vector.
float flt32_t
32-bit floating-point type definition.
Definition nrf_edgeai_ctypes.h:21
flt32_t intercept
Definition nrf_dsp_lrp.h:29
flt32_t slope
Definition nrf_dsp_lrp.h:26
Definition nrf_dsp_lrp.h:24
int32_t slope
Definition nrf_dsp_lrp.h:34
int32_t intercept
Definition nrf_dsp_lrp.h:37
Definition nrf_dsp_lrp.h:32
int16_t slope
Definition nrf_dsp_lrp.h:42
int16_t intercept
Definition nrf_dsp_lrp.h:45
Definition nrf_dsp_lrp.h:40
Floating-point statistics reusable context, in which is used to store derived or intermediate metrics...
Definition nrf_dsp_types.h:80
INT16 statistics reusable context, in which is used to store derived or intermediate metrics to simpl...
Definition nrf_dsp_types.h:135
INT8 statistics reusable context, in which is used to store derived or intermediate metrics to simpli...
Definition nrf_dsp_types.h:116