ward

package
v0.0.0-...-51cb45e Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

Jump to

Keyboard shortcuts

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