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

large data set #8

Open
luismiguelbravo opened this issue Aug 31, 2015 · 3 comments
Open

large data set #8

luismiguelbravo opened this issue Aug 31, 2015 · 3 comments

Comments

@luismiguelbravo
Copy link

Hello,
Thanks a lot for your work with kriging.js

Hear is the problem.
I have a data set with
118632 register
sampledata

whe I create a model
var model = "spherical";
var sigma2 = 0, alpha = 100;
var variogram = kriging.train(array_z, array_x, array_y, model, sigma2, alpha);

I get error "RangeError: invalid array length @ file:///E:/kringingjs/javascript/kriging.js-master/kriging.js:233"
image

What can I do to make kriging with this dataset?
maybe select few data. convert 118632 samples in 500 samples?

@gagan-bansal
Copy link

I started exploring this module recently, I am curious how did you solve it?

Instead of random 500 samples you can take every nth in x direction and nth in y direction depending on data density you want.

@mathiasleroy
Copy link

mathiasleroy commented Mar 22, 2017

I have the same issue. I have found the limit to be 501 data points.
But I have a different error message in the console:

kriging.js:15
Uncaught RangeError: Maximum call stack size exceeded
at Array.rep (kriging.js:15)
at kriging_matrix_diag (kriging.js:34)
at Object.kriging.train (kriging.js:333)

@gagan-bansal
Copy link

This error is due to recursive function call. Check here at stackoverflow with nice explanation.
But this in not solution, further @oeo4b can throw some light on this.

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

No branches or pull requests

3 participants