Skip to main content

pamoja_smoother_update

Function pamoja_smoother_update 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_smoother_update( smoother: *mut PamojaSmoother, sample: f32, ) -> f32
Expand description

Folds a sample into a smoother and returns the smoothed value.

§Returns

The smoothed value, or NaN if smoother is null.

§Safety

smoother must be a live handle from pamoja_smoother_new, or null.