kmeans

package
v0.0.0-...-726801c 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
y or Y : Canonical URL