Documentation ¶
Index ¶
- func FilterSmallClusters(clusters []*clustering.Cluster, minPoints int) []*clustering.Cluster
- func RematchPointersToClusters(clusters []*clustering.Cluster, pointers []geo.Pointer, ...) []*clustering.Cluster
- func RemoveOutlierPointersByQuadkey(pointers []geo.Pointer, level, threshold int) []*clustering.Cluster
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterSmallClusters ¶
func FilterSmallClusters(clusters []*clustering.Cluster, minPoints int) []*clustering.Cluster
FilterSmallClusters will remove points clusters with less than or equal to the minPoints.
func RematchPointersToClusters ¶
func RematchPointersToClusters( clusters []*clustering.Cluster, pointers []geo.Pointer, distancer clustering.ClusterDistancer, threshold float64, ) []*clustering.Cluster
RematchPointersToClusters will take a set of pointers and map them to the closest cluster. Basically creates a new cluster from that one point and does the ClusterDistance between them. Will return a new list.
func RemoveOutlierPointersByQuadkey ¶
func RemoveOutlierPointersByQuadkey(pointers []geo.Pointer, level, threshold int) []*clustering.Cluster
RemoveOutlierPointersByQuadkey will bucket all pointers by quad key (defined by the level) and remove the buckets with less than threshold pointers. The buckets become the resulting point_clustering.Clusters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.