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

◆ NRF_EDGEAI_OBSV_TM_STORAGE_BYTES

#define NRF_EDGEAI_OBSV_TM_STORAGE_BYTES ( n_classes)

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_metrics.h>

Value:
(sizeof(_nrf_obsv_tm_hdr_t) + (size_t)(n_classes) * (size_t)(n_classes) * sizeof(uint32_t))

Minimum byte size of a transition matrix storage buffer for n_classes classes.

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