package
1.4.31
Repository: https://github.com/emer/emergent.git
Documentation: pkg.go.dev

# README

Docs: GoDoc

Package popcode provides population code encoding and decoding support functionality, in 1D and 2D.

popcode.OneD

popcode.OneD Encode method turns a single scalar value into a 1D population code according to a set of parameters about the nature of the population code, range of values to encode, etc.

Decode takes a distributed pattern of activity and decodes a scalar value from it, using activation-weighted average based on tuning value of individual units.

popcode.TwoD

popcode.TwoD likewise has Encode and Decode methods for 2D gaussian-bumps that simultaneously encode a 2D value such as a 2D position.

popcode.Ring

popcode.Ring is a version of popcode.OneD for values that wrap-around, such as an angle -- set the Min and Max to the exact values with no extra (e.g., 0, 360 for angle).

# Constants

Add is used for popcode Encode methods, add arg -- indicates to add values to any existing values in the target vector / tensor: used for encoding additional values (see DecodeN for decoding).
GaussBump = gaussian bump, with value = weighted average of tuned unit values.
Localist = each unit represents a distinct value; intermediate values represented by graded activity of neighbors; overall activity is weighted-average across all units.
Set is used for popcode Encode methods, add arg -- indicates to set values in any existing values in the target vector / tensor: used for encoding first / only values.

# Structs

popcode.OneD provides encoding and decoding of population codes, used to represent a single continuous (scalar) value across a population of units / neurons (1 dimensional).
Ring is a OneD popcode that encodes a circular value such as an angle that wraps around at the ends.
popcode.TwoD provides encoding and decoding of population codes, used to represent two continuous (scalar) values across a 2D tensor, using row-major XY encoding: Y = outer, first dim, X = inner, second dim.

# Type aliases

No description provided by the author