som

package
v0.0.0-...-3954d85 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MaxValue = 255

MaxValue som unitの最大値

Variables

This section is empty.

Functions

func Routine

func Routine(chset ChanSet, conf Config, collector Collector, quit chan bool)

Routine SOM学習スレッド

Types

type ChanSet

type ChanSet struct {
	TraitCh chan TraitChan
	MapCh   chan MapChan
}

ChanSet SOM通信用チャンネル

func MakeChannelRoutine

func MakeChannelRoutine() (chset ChanSet)

MakeChannelRoutine SOMチャンネル生成処理関数

type Collector

type Collector struct {
	Distance    prometheus.Gauge
	Radius      prometheus.Gauge
	OutlierRate prometheus.Gauge
}

Collector SOM Routineで利用するチャネル

func MakeCollector

func MakeCollector() (collector Collector)

MakeCollector Exporter定義生成関数

type Config

type Config struct {
	Size int `json:"size"`
}

Config SOMが要求するコンフィグ

type Factor

type Factor struct {
	Red   float64
	Blue  float64
	Green float64
}

Factor 要素係数型

type MapChan

type MapChan struct {
	ResMap chan [][]Unit
}

MapChan SOM Routineで利用するチャネル

type Som

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

Som Unitで構成された球面SOM

var DataMap Som

DataMap データ実体

type TraitChan

type TraitChan struct {
	Unit        Unit
	ResDistance chan float64
}

TraitChan 学習情報やり取り用

type Unit

type Unit struct {
	Red   int
	Blue  int
	Green int
}

Unit 要素型

Jump to

Keyboard shortcuts

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