kmeans

package
v0.2.0-mixed Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kmeans

type Kmeans struct {
	// contains filtered or unexported fields
}

Kmeans configuration/option struct

func New

func New() Kmeans

New returns a Kmeans configuration struct with default settings

func NewWithOptions

func NewWithOptions(deltaThreshold float64) (Kmeans, error)

NewWithOptions returns a Kmeans configuration struct with custom settings

func (Kmeans) Partition

func (m Kmeans) Partition(dataset clusters.PointList, k int) (clusters.Clusters, error)

Partition executes the k-means algorithm on the given dataset and partitions it into k clusters

Jump to

Keyboard shortcuts

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