Skip to main content

pamoja_smoother_value

Function pamoja_smoother_value 

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

Reads a smoother’s current value without folding in a sample.

§Returns

true if a value is available, having written it to out_value; false if no sample has been seen yet or smoother is null.

§Safety

smoother must be a live handle from pamoja_smoother_new, or null, and out_value must point to a writable float or be null.