Skip to main content

siegelslopes

Function siegelslopes 

Source
pub fn siegelslopes(y: &[f64], x: &[f64]) -> Result<RobustLine, ErrorsJSL>
Expand description

Siegel’s repeated-medians line (SciPy’s siegelslopes with method='hierarchical'): for each point the median slope to every other point with a different x, the slope is the median of those, and the intercept the median of yᵢ − slope · xᵢ. Breakdown point 50 %.