Documentation ¶
Overview ¶
Package cluster provides interfaces and types for data clustering in ℝⁿ.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Center ¶
type Center interface { Point // Members returns a set of indices into the slice returned by Clusterer.Values() that // refers to the Values associated with the Center. Members() Indices }
A Center is a representation of a cluster center.
type Clusterer ¶
type Clusterer interface { // Cluster the data. Cluster() error // Centers returns a slice of centers of the clusters. Centers() []Center // Values returns the internal representation of the original data. Values() []Value }
Clusterer is the common interface implemented by clustering types.
type Interface ¶
type Interface interface { Len() int // Return the length of the data vector. Values(i int) []float64 // Return the data values for element i as a slice of float64. }
Interface is a type that can be clustered by a Clusterer.
Click to show internal directories.
Click to hide internal directories.