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

◆ NRF_EDGEAI_OBSV_CPD_STORAGE_BYTES

#define NRF_EDGEAI_OBSV_CPD_STORAGE_BYTES ( n_classes)

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_metrics.h>

Value:
(sizeof(_nrf_obsv_cpd_hdr_t) + (size_t)NRF_EDGEAI_OBSV_CPD_ROW_GROUPS * (n_classes) * \
CONFIG_NRF_EDGEAI_OBSV_CLASS_PRED_DIST_BIN_NUM * \
sizeof(uint32_t))
#define NRF_EDGEAI_OBSV_CPD_ROW_GROUPS
Row-group count: the matrix is 2 x num_classes rows (probs, then streak).
Definition nrf_edgeai_obsv_metrics.h:491

Minimum byte size of a class predictions distribution storage buffer for n_classes classes.

The matrix is 2*n_classes x bin_num (rows [0, n_classes) probability distribution, rows [n_classes, 2*n_classes) streak distribution). Use with nrf_edgeai_obsv_metric_cpd_create to size a caller-supplied buffer. The buffer must be aligned to at least sizeof(uint32_t) bytes.