kmeans

package
Version: v0.0.0-...-378f036 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KMeansInit

func KMeansInit(nList []Node, nClusters int, maxIter int) (bool, []Node, []Node, int)

func KMeansTraining

func KMeansTraining(nList []Node, nCentroids []Node, maxIter int) ([]Node, []Node, int)

func Nearest

func Nearest(n Node, nList []Node) int

func TrainingDecode

func TrainingDecode(sLong string) (recon []Node, newNCluster []Node, newNIter int)

func TrainingEncode

func TrainingEncode(nList []Node, nCentroids []Node, maxIter int) string

Types

type Node

type Node []float64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL