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

◆ NRF_EDGEAI_OBSV_PD_STORAGE_BYTES

#define NRF_EDGEAI_OBSV_PD_STORAGE_BYTES ( n_classes)

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_metrics.h>

Value:
(sizeof(_nrf_obsv_pd_hdr_t) \
+ ((size_t)CONFIG_NRF_EDGEAI_OBSV_PROBS_DISTRIBUTION_BIN_NUM - 1U) * sizeof(float) \
+ (size_t)(n_classes) * CONFIG_NRF_EDGEAI_OBSV_PROBS_DISTRIBUTION_BIN_NUM \
* sizeof(uint32_t))

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

Use with nrf_edgeai_obsv_metric_pd_create to size a caller-supplied buffer. The buffer must be aligned to at least sizeof(uint32_t) bytes.