ALGLIB forum
It is currently Fri Oct 18, 2019 8:07 pm

All times are UTC

Forum rules

1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How can I define default value for RBF interpolator
PostPosted: Fri Sep 12, 2014 5:16 pm 

Joined: Tue Mar 12, 2013 1:00 pm
Posts: 2
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.


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:

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

        alglib.rbfsetpoints(_model, point_cloud);

        alglib.rbfsetalgomultilayer(_model, radius, layers);

        alglib.rbfreport report;

        alglib.rbfbuildmodel(_model, out report);

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group