Updated 06 Sep 2019
Jenks Natural Breaks is a data clustering method. It is an optimization process that finds the best arrangement of values into different classes. It can be used for step-change detection in noisy data. In this example, a one-dimensional array of noisy values is used. The method is applied to the array to find the index of the interface separating the high and low values.
MS (2020). Clustering via Jenks Natural Breaks (https://www.github.com/MSH19/Clustering-via-Jenks-Natural-Breaks-), GitHub. Retrieved .
Thanks for your comment, Roberto. Yes, you are right, it should be: class_2 = Array(i+1:total);
Thank you very much for this code, it is great. Just one note: I would expect line 14 in get_jenks_interface.m to read like this:
class_2 = Array(i+1:total);
class_2 = Array(i:total);
Am I right?
Connected to GitHub