[vtkusers] vtkMath::SolveLeastSquares
Moti Freiman
freiman at cs.huji.ac.il
Sun Aug 29 08:31:30 EDT 2004
Hello!
I've matrix A with dimensions [j,3] (when j is at least 3, and change
between different data), and vector Y with dimensions [j,1] (column
vector)., also I have x vector with dimensions [1,3] (also column
vector).
I want to get the least square fitting to the equation Ax=y;
I saw that the svd method implemented in vtk can used just for 3x3
matrix, and I have more equations.
I find the SolveLeastSquares method, but did not understand what to do
with it.
Can someone send detailed explanation of how to use the
SolveLeastSquares for my problem. what means the first argument:
numberOfSamples, third argument: numberOfSamples by xOrder, and the
fifth argument: numberOfSamples by yOrder?)
Thank you!
Moti Freiman
More information about the vtkusers
mailing list