Documentation
¶
Index ¶
- type Environment
- type GetEnvironment
- type Signal
- func (s *Signal[K]) ActiveFeatures() int
- func (s *Signal[K]) Clear()
- func (s *Signal[K]) Exists(index K) bool
- func (s *Signal[K]) Get(index K) int
- func (s *Signal[K]) Iterate(runner func(i K, v int))
- func (s *Signal[K]) Operate(runner func(signal *Signal[K]))
- func (s *Signal[K]) Set(index K, value int)
- func (s *Signal[K]) String() string
- func (s *Signal[K]) WTA(gap int)
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 Signal ¶
type Signal[K comparable] struct { // contains filtered or unexported fields }
func NewSignal ¶
func NewSignal[K comparable]() *Signal[K]
func (*Signal[K]) ActiveFeatures ¶
Click to show internal directories.
Click to hide internal directories.