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

keplerjs:stats - classification #5

Open
stefanocudini opened this issue Sep 4, 2017 · 1 comment
Open

keplerjs:stats - classification #5

stefanocudini opened this issue Sep 4, 2017 · 1 comment

Comments

@stefanocudini
Copy link
Member

stefanocudini commented Sep 4, 2017

@simogeo thank you so much!
If I could ask you a question about my use of Geostats that's probably not correct.
I wanted to get a classification in a given range of outpout values(for example from 3 to 30) that matches the radius of the circles in the map.
Do you think this is the best sort of classification?
https://github.com/Keplerjs/Kepler/blob/master/packages/keplerjs-stats/server/places.js#L34
the Leflet map client is here:
https://github.com/Keplerjs/keplerjs.github.io/blob/master/js/main.js#L54

But I'm forced to use Math.min()/max() methods... the result is not good because it does not show well my statistics.. :(

thank you for your time.
Stefano

@stefanocudini stefanocudini changed the title keplerjs:stats - keplerjs:stats - classification Sep 4, 2017
@simogeo
Copy link

simogeo commented Sep 4, 2017

You probably missunderstood something,

Let's say, you have a serie, with N values containing values from 0 to 3.
Passing the serie to geostats and calling getClassQuantile(4) will return an array such as array(0, 0.75, 1.5, 2.25, 3) see the code

you will, then choose / set radius size (in leaflet) related to the given item - see getRangeNum() method which will probably help you.

Your radius will have 4 different values in my example and 10 in yours.

Could you copy / paste, the content of factors array ?

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

No branches or pull requests

2 participants