Skip to main content

pamoja_anomaly_with_capacity

Function pamoja_anomaly_with_capacity 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_anomaly_with_capacity( sigmas: f32, capacity: usize, ) -> *mut PamojaAnomaly
Expand description

Creates an anomaly detector whose baseline keeps up to capacity readings.

§Returns

A handle the caller must release with pamoja_anomaly_free, or null if capacity is not from 2 to PAMOJA_WINDOW_CAPACITY, since a spread needs two readings.

§Safety

A returned handle must be freed exactly once.