Skip to main content

pamoja_anomaly_check

Function pamoja_anomaly_check 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_anomaly_check( anomaly: *mut PamojaAnomaly, reading: f32, ) -> bool
Expand description

Folds a reading in and reports whether it stands out from the readings before it.

§Returns

true when the reading is further from the mean than the configured number of deviations, or is not a finite number. false otherwise, before two readings are held, or if anomaly is null.

§Safety

anomaly must be a live handle from an anomaly constructor, or null.