LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bi-Variable Curve Fit

Is anyone aware of a VI that will come up with a set of coefficients for a 2-Variable set of data (Bi-Variable Curve Fit, Surface Fit, 2D Curve Fit, 2D Least Square Fit with Gaussian Elimination)?
0 Kudos
Message 1 of 4
(3,129 Views)
miken wrote:
> Is anyone aware of a VI that will come up with a set of coefficients
> for a 2-Variable set of data (Bi-Variable Curve Fit, Surface Fit, 2D
> Curve Fit, 2D Least Square Fit with Gaussian Elimination)?

You want to fit an analytic function? That is a regression problem, I
think. Possibly it works by projecting the point set into an
n-dimensional space and then taking the norm of the difference with
respect to an n-plane, where the projection has been proved to be
unique. This provides a metric for the selection of the surface, which
is then fitted to the origional point set with a certain number of
degrees of freedom.

Alternatively, if you can prove that the normal to the surface never has
a negative Z component (assuming the Z-axis is p
ointing up) then every
plane perpendicular to the Z-axis and slicing the surface contains the
projection of a function. For the ZX and ZY slicing planes these are
functions of one variable and can be fit with regular methods. If the
domain is a rectilinear grid of axb points then you can determine a+b
number of curves that define the surface in a local region. For points
inbetween, simply interpolate, assuming that the surface is 'smooth'.

Also, you might be interested in the following link or a spin on it:

http://mathforum.org/epigone/comp.soft-sys.matlab/spoitayzom
0 Kudos
Message 2 of 4
(3,129 Views)
Thanks, but I was looking for a more simultaneous fit that would essentially be a taylor series expansion of selectable order (probably usually only 2nd or 3rd) which would ouput the corresponding taylor coefficients given input arrays x, y, and z. Is anyone aware of any surface fit sub VIs? It seems as if this is something that shouln't require re-inventing the wheel.
0 Kudos
Message 3 of 4
(3,129 Views)
miken wrote:
> Thanks, but I was looking for a more simultaneous fit that would
> essentially be a taylor series expansion of selectable order (probably
> usually only 2nd or 3rd) which would ouput the corresponding taylor
> coefficients given input arrays x, y, and z. Is anyone aware of any
> surface fit sub VIs? It seems as if this is something that shouln't
> require re-inventing the wheel.

I think the GMath Toolkit might have done that.
0 Kudos
Message 4 of 4
(3,129 Views)