def cluster
      cluster_id = dbscan_clusters.get_next_cluster_id
      points.each do |p|
        if dbscan_clusters.unclassified?(p)
          if create_cluster(p, cluster_id)
            cluster_id = dbscan_clusters.get_next_cluster_id
          end
        end
      end
      
      dbscan_clusters.to_clusters
    end
def cluster
      cluster_id = dbscan_clusters.get_next_cluster_id
      points.each do |p|
        if dbscan_clusters.unclassified?(p)
          if create_cluster(p, cluster_id)
            cluster_id = dbscan_clusters.get_next_cluster_id
          end
        end
      end
      
      dbscan_clusters.to_clusters
    end
Initializes algorithm with all data that it needs.

  * points            - points to cluster
  * eps               - distance threshold value
  * min_points        - number of neighbors for point to be considered a
                        core point.
  * distance          - distance measure to use (defaults to Cosine)
  * vector_calculator - calculates the vectors to use for distance comparison.
                        defaults to DbscanNumericVectors which compares just
                        the numeric attributes of the datapoint.
                        Alternatively use DbscanTermFrequency.