clustering

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Noise = 0
)

Variables

This section is empty.

Functions

func DBSCAN

func DBSCAN(data []Point, eps float64, minPts int) []int

func Hierarchical

func Hierarchical(data []Point, k int, linkage Linkage) []int

func RegisterClusteringPreload

func RegisterClusteringPreload(v *vm.VM)

Types

type KMeansResult

type KMeansResult struct {
	Centers     []Point
	Assignments []int
	Iterations  int
}

func KMeans

func KMeans(data []Point, k, maxIter int, delta float64, rng *rand.Rand) KMeansResult

type Linkage

type Linkage int
const (
	SingleLinkage Linkage = iota
	CompleteLinkage
	AverageLinkage
)

func ParseLinkage

func ParseLinkage(s string) Linkage

type MeanShiftResult

type MeanShiftResult struct {
	Centers     []Point
	Assignments []int
	Iterations  int
}

func MeanShift

func MeanShift(data []Point, bandwidth float64, maxIter int) MeanShiftResult

type Point

type Point struct {
	Entry []float64
}

Jump to

Keyboard shortcuts

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