![]() |
Edge AI Add-on API 2.2.0
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | nrf_edgeai_obsv_metric_snapshot_t |
| Read-only view over one metric's accumulated counters. More... | |
| struct | nrf_edgeai_obsv_metric_s |
| Observability metric operation table and list node. More... | |
| struct | nrf_obsv_probs_dist_cfg_t |
| Runtime configuration for probability distribution metric. More... | |
Macros | |
| #define | NRF_EDGEAI_OBSV_PD_STORAGE_BYTES(n_classes) |
Minimum byte size of a probability distribution storage buffer for n_classes classes. | |
| #define | NRF_EDGEAI_OBSV_TM_STORAGE_BYTES(n_classes) |
Minimum byte size of a transition matrix storage buffer for n_classes classes. | |
Typedefs | |
| typedef struct nrf_edgeai_obsv_metric_s | nrf_edgeai_obsv_metric_t |
| Observability metric operation table and list node. | |
Enumerations | |
| enum | nrf_edgeai_obsv_source { NRF_EDGEAI_OBSV_SOURCE_PROBS = 0 , NRF_EDGEAI_OBSV_SOURCE_FEATURES = 1 } |
| Data stream a metric consumes. More... | |
| enum | nrf_edgeai_obsv_metric_id { NRF_EDGEAI_OBSV_METRIC_ID_TRANSITION_MATRIX = 2 , NRF_EDGEAI_OBSV_METRIC_ID_PROBS_DISTRIBUTION = 3 , NRF_EDGEAI_OBSV_METRIC_ID_PREDICTION_SWITCHING_RATE = 4 , NRF_EDGEAI_OBSV_METRIC_ID_PROBS_ENTROPY_DIST = 5 , NRF_EDGEAI_OBSV_METRIC_ID_PROBS_TOP2_MARGIN_DIST = 6 , NRF_EDGEAI_OBSV_METRIC_ID_MEL_ENERGY_DESC = 7 , NRF_EDGEAI_OBSV_METRIC_ID_MEL_SPECTRAL_DESC = 8 } |
| Metric identifier values emitted by each metric's snapshot. More... | |
Functions | |
| void | nrf_edgeai_obsv_metric_pd_create (nrf_edgeai_obsv_metric_t *metric, void *buf, uint16_t n_classes) |
| Initialize a probability distribution metric using caller-provided storage. | |
| void | nrf_edgeai_obsv_metric_tm_create (nrf_edgeai_obsv_metric_t *metric, void *buf, uint16_t n_classes) |
| Initialize a transition matrix metric using caller-provided storage. | |