This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jenks(data, n_classes) { | |
if (n_classes > data.length) return null; | |
data = data.slice().sort(function (a, b) { | |
return a - b; | |
}); | |
var matrices = getMatrices(data, n_classes); | |
var lower_class_limits = matrices.lower_class_limits; |