engines

package
v0.0.0-...-c9b4808 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBSCAN

type DBSCAN struct {
	// contains filtered or unexported fields
}

DBSCAN engine

func NewDBSCAN

func NewDBSCAN(data [][]float64, eps float64, epsNeighborhood int) *DBSCAN

func (*DBSCAN) GetCenterClusterById

func (o *DBSCAN) GetCenterClusterById(clusterId int) (float64, float64)

func (*DBSCAN) GetPointsByClusterId

func (o *DBSCAN) GetPointsByClusterId(clusterId int) []int

func (*DBSCAN) Len

func (o *DBSCAN) Len() int

func (*DBSCAN) Scan

func (o *DBSCAN) Scan() error

type Engines

type Engines interface {
	Scan() error
	Len() int
	GetCenterClusterById(clusterId int) (float64, float64)
}

type Kmeans

type Kmeans struct {
	// contains filtered or unexported fields
}

func NewKMeans

func NewKMeans(data [][]float64, parts int) *Kmeans

func (*Kmeans) GetCenterClusterById

func (o *Kmeans) GetCenterClusterById(clusterId int) (float64, float64)

func (*Kmeans) Len

func (o *Kmeans) Len() int

func (*Kmeans) Scan

func (o *Kmeans) Scan() error

Jump to

Keyboard shortcuts

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