![]() |
Edge AI Add-on API 2.2.0
|
| void nrf_edgeai_obsv_metric_pd_create | ( | nrf_edgeai_obsv_metric_t * | metric, |
| void * | buf, | ||
| uint16_t | n_classes ) |
#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_metrics.h>
Initialize a probability distribution metric using caller-provided storage.
The caller allocates a buffer of at least NRF_EDGEAI_OBSV_PD_STORAGE_BYTES bytes, passes it here, then registers the metric with nrf_edgeai_obsv_core_register().
| metric | Metric descriptor to fill. Must not be NULL. |
| buf | Buffer of at least NRF_EDGEAI_OBSV_PD_STORAGE_BYTES(n_classes) bytes, aligned to at least sizeof(uint32_t). Must not be NULL. |
| n_classes | Number of model output classes (> 0). |