Least-squares line fitting: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) mNo edit summary |
||
Line 56: | Line 56: | ||
} | } | ||
} | } | ||
var res = JXG.Math.Numerics.Jacobi(A); | //var res = JXG.Math.Numerics.Jacobi(A); | ||
console.log( | console.log(A[0]); | ||
console.log(A[1]); | |||
console.log(A[2]); | |||
/* | /* | ||
// Now, the general linear least-square fitting problem | // Now, the general linear least-square fitting problem |
Revision as of 16:55, 9 November 2010
This little JXSGraph application finds the line - described by homogeneous coordinates [a,b,c] - that minimizes
- [math]\displaystyle{ \sum_{i=1}^n (ax_i+by_i+cz_i)^2. }[/math]
Coming soon...