Skip to main content

pamoja_median_update

Function pamoja_median_update 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_median_update( median: *mut PamojaMedian, reading: f32, ) -> f32
Expand description

Folds a reading in and returns the median of the window.

§Returns

The median, or NaN if median is null.

§Safety

median must be a live handle from pamoja_median_new, or null.