forum.alglib.net
http://forum.alglib.net/

How can I define default value for RBF interpolator
http://forum.alglib.net/viewtopic.php?f=2&t=2135
Page 1 of 1

Author:  heltonbiker [ Fri Sep 12, 2014 5:16 pm ]
Post subject:  How can I define default value for RBF interpolator

I am using RBF 2D interpolator for a cloud point Z = f(X,Y) of a section of terrain containing a mountain;

When I interpolate over a grid, the edges of the grid get "lifted", because the default value (returned when there are no nearby points) seems to be the AVERAGE of the Z coordinates.

The desired behavior would be to get Z = 0 when no nearby points.

Image

Is there a way I can tell the interpolator I want a zero value as default, even if cloud point does not intersect zero plane?

My current code is:

Code:
        alglib.rbfcreate(2, 1, out _model);

        alglib.rbfsetpoints(_model, point_cloud);

        alglib.rbfsetalgomultilayer(_model, radius, layers);

        alglib.rbfreport report;

        alglib.rbfbuildmodel(_model, out report);

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/