Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RBFInterpolation NaN #44

Closed
bwkchee opened this issue Nov 4, 2015 · 3 comments
Closed

RBFInterpolation NaN #44

bwkchee opened this issue Nov 4, 2015 · 3 comments
Labels

Comments

@bwkchee
Copy link

bwkchee commented Nov 4, 2015

Thanks for providing a Kriging and RBFInterpolation function!
I'm trying to use:
RBFInterpolation(coords, vals, new GaussianRadialBasis())
coords is a 2d double array of points in a x,y plane with a range (0,3000). vals is a 1d double array of values in the range (20-100). After initializing the RBFInterpolation I try to call interpolate(x,y) where x and y are in the range (0,3000) eg interpolate(153,331) and the result is NaN.

I noticed in your ScatterDemo code you swap the coordinates and you multiply it by a scaling factor:
rbf.interpolate(j_.12, i_12)

Do I need to swap my x and y coordinates when calling interpolate? What is the significance of the scaling factor?

@haifengl
Copy link
Owner

haifengl commented Nov 5, 2015

scaling and swap were for visualization purpose. these are not the reason. can you please post your code snippet? Thanks!

@haifengl
Copy link
Owner

Do you have problems with it?

@haifengl
Copy link
Owner

If you have no problems with it any more, I will close this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants