Back to godoc.org

Package ward

v0.0.0-...-51cb45e
Latest Go to latest

The highest tagged major version is .

Published: Apr 7, 2018 | License: MIT | Module: github.com/cipepser/goClustering

Index

type Group

type Group struct {
	Left, Right, N int
	// contains filtered or unexported fields
}

Group represents a cluster. Each Group is represented by `vec` and has N, the number of menber included in the group. Each Group have 2 children(Left and Right) excludes leaf node, leaf node's Left and Right is -1.

func (*Group) GetDist

func (g *Group) GetDist() float64

GetDist returns dist of the Group

type Tree

type Tree []Group

Tree represents a tree of groups.

func Ward

func Ward(X [][]float64) Tree

Ward execute Ward's method for clustering.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier