helpers

package
v0.0.0-...-516b90f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL