Skip to main content

pamoja_trend_slope

Function pamoja_trend_slope 

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

Reads the slope a trend estimator has fitted, in units per reading.

§Returns

true when there are enough readings to fit a line, with the slope written to out_value. A positive slope is a rising signal.

§Safety

trend must be a live handle or null, and out_value must point to a writable float.