Skip to main content

shortest_solution

Function shortest_solution 

Source
pub fn shortest_solution(rows: &[(Vector3, Scalar)]) -> GeopResult<Vector3>
Expand description

The shortest d with n_i . d = r_i for every (n_i, r_i) — for more than three conditions, of which three can be met at most, the d that misses them least in the least-squares sense.

Three independent conditions leave only one d, solved for directly: the Gram matrix the fewer need squares the system’s condition number.