goem

package
v0.0.0-...-946c296 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryParams

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

BinaryParams is needed to use goroutine.

type EM

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

EM is EM-algorithm class.

func NewEM

func NewEM(sig float64, cluster int, data [][]float64, mean float64) *EM

NewEM is initializer of struct EM.

func NewOptimizedEM

func NewOptimizedEM(sig float64, end int, partition int, iter int, data [][]float64, mean float64, goroutine bool) *EM

NewOptimizedEM generates EM object with optimized param by cross-entropy

func (EM) CrossEntropy

func (em EM) CrossEntropy(end int, partition int, iter int, mean float64) (bestCluster int)

CrossEntropy calculates the best cluster number.

func (EM) EmIter

func (em EM) EmIter(times int, loglike float64, verbose bool, directory string)

EmIter culcurates EM algorithm.

func (EM) Plot

func (em EM) Plot(fileid int, directory string)

Plot plots only 2-dimensional cluster and points

func (EM) Show

func (em EM) Show()

Show shows the result.

Jump to

Keyboard shortcuts

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