algorithm

package
v0.0.0-...-5935107 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgglomerativeClustering

func AgglomerativeClustering(points []clustering.Point, clusterDistAlgo clustering.DistanceMeasure, pointDistAlgo clustering.PointDistance) (clusterlevels *[][]clustering.Cluster)

Takes a set of n points and a distance measure and computes a hierarchical clustering containing n levels.

func KMeans

func KMeans(k int, epsilon float64, points []clustering.Point, clusterDistAlgo clustering.DistanceMeasure, pointDistAlgo clustering.PointDistance) (finalCluster []clustering.Cluster, err error)

Produces a clustering of the given points into k clusters using the k-means clustering approach. The parameter epsilon is used to test for convergence of the cluster assignment step. @return []cluster the final clustering @return int the number of points considered in the clustering @return int64 the timestamp of the latest point taken into consideration

func Munkres

func Munkres(matrix [][]int) *[]int

Generic implementation of munkres assignment algorithm.

Types

Jump to

Keyboard shortcuts

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