Least-squares line fitting: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 52: | Line 52: | ||
} | } | ||
for (i=0;i<3;i++) { | for (i=0;i<3;i++) { | ||
for ( | for (j=0;j<3;j++) { | ||
A[i][j] /= n; | A[i][j] /= n; | ||
} | } |
Revision as of 16:52, 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...