![]() |
Edge AI Add-on API 2.2.0
|
| void(* nrf_edgeai_obsv_metric_s::update) (const float *p_data, uint16_t n, void *priv) |
Consumes one data vector from the metric's source stream.
The core invokes this only for the stream the metric declared via nrf_edgeai_obsv_metric_s::source. The class-probability vector for NRF_EDGEAI_OBSV_SOURCE_PROBS metrics, or the extracted input-feature vector for NRF_EDGEAI_OBSV_SOURCE_FEATURES metrics.
| p_data | Pointer to the input vector for one update: class probabilities (PROBS) or extracted features (FEATURES), per the metric's source. |
| n | Number of entries in p_data: num_classes for PROBS, or the length passed to nrf_edgeai_obsv_update_features for FEATURES. |
| priv | Opaque per-instance storage pointer. |