docs: function getNearestCluster(clusters, point) {
      var minDistance = Number.MAX_VALUE;
      var clusterIndex = 0;
      var minCluster = 0;
      for (var i = 0; i < clusters.length; i++) {
        var c = clusters[i];
        var d = distance(point, c.getCenter());
        if (d < minDistance) {
          minDistance = d;
          minCluster = clusterIndex;
        }
        clusterIndex++;
      }
      return minCluster;
    }