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

◆ update

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.

Parameters
p_dataPointer to the input vector for one update: class probabilities (PROBS) or extracted features (FEATURES), per the metric's source.
nNumber of entries in p_data: num_classes for PROBS, or the length passed to nrf_edgeai_obsv_update_features for FEATURES.
privOpaque per-instance storage pointer.