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

◆ nrf_edgeai_obsv_metric_pd_create()

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().

Parameters
metricMetric descriptor to fill. Must not be NULL.
bufBuffer of at least NRF_EDGEAI_OBSV_PD_STORAGE_BYTES(n_classes) bytes, aligned to at least sizeof(uint32_t). Must not be NULL.
n_classesNumber of model output classes (> 0).