-
Notifications
You must be signed in to change notification settings - Fork 1
ClassifyJenksFisher
Classify functions ClassifyJenksFisher
- ClassifyJenksFisher(a, domain unit)
ClassifyJenksFisher(a, domain unit) results in a data item with class breaks, based on the method described in Fisher's Natural Breaks Classification complexity proof. The resulting values unit is the values unit of data item a, the resulting domain unit is the domain unit argument.
- a: numeric data item to be classified
- domain unit: determining the number of class breaks.
The Jenks Fisher classification method, is a fast algorithm that results in breaks that minimize the sum of the square deviations from the class means, also known as natural breaks. The self contained code with an example usage is: CalcNaturalBreaks
The same function can also be applied from the GUI by requesting the Palette Editor of a map layer and activate the Classify > JenksFisher classification.
The ClassifyJenksFisher results in a set of ClassBreaks that can be used in the classify function to classify a data item.
- data item a with Numeric value type
- domain unit with value type from group CanBeDomainUnit
7.019
attribute<nrPersons> classifyJfNrInh (inh_4K) := ClassifyJenksFisher(NrInh, inh_4K);
classifyJfNrInh |
---|
0 |
200 |
550 |
860 |
Table inh_4K, nr of rows = 4
NrInh |
---|
550 |
1025 |
300 |
200 |
0 |
null |
300 |
2 |
20 |
55 |
860 |
1025 |
1025 |
100 |
750 |
Table District, nr of rows = 15
see also
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.