Skip to content

ClassifyNonzeroJenksFisher

mtbeek32 edited this page Jan 2, 2023 · 7 revisions

Classify functions ClassifyNonzeroJenksFisher

syntax

definition

ClassifyNonzeroJenksFisher(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.

This Nonzero version of this function classifies the positive and negative values separately. The value 0 is a treated as a special value, it is a compulsory class break. The number of classes for the positive and the negative values, within the total number of classes, are chosen in a manner that minimalizes the sum of the square deviations from the class means.

description

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: CalcNaturalBreaksCode

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 (see also the User Guide).

The ClassifyNonzeroJenksFisher results in a set of ClassBreaks that can be used in the classify function to classify a data item.

applies to

since version

8.031

example

attribute classifyNZJfNrInh (inh_4K) := ClassifyNonzeroJenksFisher(NrInh, inh_4K);

classifyNZJfNrInh
0
2
300
750

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

seel also

Clone this wiki locally