-
Notifications
You must be signed in to change notification settings - Fork 64
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
extractBounds method gives erroneous output #3
Comments
The duplicate entry is not that strange on a such small serie. the extractBounds() method returns array of bounds values. I don't think the jenks method used in geostats is incorrect but I'll inquire. Thanks for submitting your remark |
Hi Simon, Many thanks for all the info. That's interesting I didn't know that each algorithm has it's own specificity which explains why the ranges weren't matching the values of another implementation I have. :-) On another note the following data set: [8,9,9,8,9,9,8,8,8,25,12,8,12,8,8,8,9,8,8,11,8,8,8,8,8,8,9,9,8,8,8,8,8,9,8,8,9,8,8,8,8,8,8,9,8,9,12,8,9,8,8,11,10,8,12,9,12,8,8, returns these ranges: [8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 8,8 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 9,9 - 10,10 - 10,10 - 10,10 - 10,10 - 10,10 - 11,11 - 11,11 - 11,11 - 11,11 - 11,11 - 11,11 - 12,12 - 12,12 - 12,12 - 12,12 - 12,12 - 12,12 - 12,12 - 25] The alternative web based implementation I have returns the following ranges which seem to be more sensible: [8,9,10 - 11,12,13 - 25] On the whole geostats is great, thank you so much for all the hard work. |
Do you have an online implementation of that? (By the way, the jenks algorithm was also used by the mapfish framework geo-statistics extension) |
The implementation I have is used in an online service for retrieving the University of Kentucky's engagement activities. To get to the Choropleth map click on "Engagement Map", to see the ranges in my previous comment select the year "2010" and the college "Student Affairs". Thanks, I've just been browsing mapfish's website and reading through it, it looks really interesting! |
I see. it seems Daniel J Lewis work (in python) is a very good one. |
I've not had a chance to rewrite Daniel's Python implementation to JavaScript myself, however the author of the application has :-) I have been in communication with him and do have his contact details. I can provide you his email address, is there a discrete way of doing this here? He has published the source code for the application online, there's also some information regarding its usage - he is happy for the code to be reused but the map service, data, and the ArcGIS Server services used in the application are copyright. |
Sorry Simon, I forgot to include the link to the source code in my previous comment. I've updated my comment with the link. |
Thanks for the link. |
Simon, I've looked everywhere on github and I'm unable to find the private messaging facility. Could you please point me in the right direction :-) Thanks |
indeed, it was possible before. I'm not sure it is anymore .... |
imranazad, indeed, the Jenks algorithm implementation was buggy. I integrated the Doug Curl implementation you mentioned. Thanks to him the Jenks classification should now work properly. |
Consider the following data set [2,16,20,23,10,29], calling getJenks(5) returns [2,10,16,20,29,29]. Notice the duplicate 29, is this the correct behavior? Also what is the purpose of the extractBounds method?
The text was updated successfully, but these errors were encountered: