model

package
v0.0.0-...-6a2e7b8 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment interface {
	GetEnvironment
	SetLearningThreshold(int)
	SetGap(int)
	SetPassThrough(bool)
}

func NewEnvironment

func NewEnvironment() Environment

type GetEnvironment

type GetEnvironment interface {
	GetLearningThreshold() int
	GetGap() int
	GetPassThrough() bool
}

type Signal

type Signal[K comparable] struct {
	// contains filtered or unexported fields
}

func NewSignal

func NewSignal[K comparable]() *Signal[K]

func (*Signal[K]) ActiveFeatures

func (s *Signal[K]) ActiveFeatures() int

func (*Signal[K]) Clear

func (s *Signal[K]) Clear()

func (*Signal[K]) Exists

func (s *Signal[K]) Exists(index K) bool

func (*Signal[K]) Get

func (s *Signal[K]) Get(index K) int

func (*Signal[K]) Iterate

func (s *Signal[K]) Iterate(runner func(i K, v int))

func (*Signal[K]) Operate

func (s *Signal[K]) Operate(runner func(signal *Signal[K]))

func (*Signal[K]) Set

func (s *Signal[K]) Set(index K, value int)

func (*Signal[K]) String

func (s *Signal[K]) String() string

func (*Signal[K]) WTA

func (s *Signal[K]) WTA(gap int)

Jump to

Keyboard shortcuts

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