Documentation
¶
Index ¶
Constants ¶
View Source
const ( Chunks = 8 ChunkSize = 64 CASize = Chunks * ChunkSize Alpha = 0.08 SpikeFactor = 2 SpikeThreshold = .66 NetworkSize = 7 )
Variables ¶
View Source
var ( Notes = [...]uint8{ 60, 62, 64, 65, 67, 69, 71, } MaxEntropy = math.Log2(float64(len(Notes))) MaxMarkov = 2 * MaxEntropy )
Functions ¶
Types ¶
type CA ¶
type CA struct {
Rule uint8
State []uint64
Connections []int
On uint64
Low, Complexity, Spike float64
Threshold float64
Note uint8
}
CA is a cellular automaton
func (*CA) AddConnection ¶
AddConnection adds a connection to another cellular automaton
Click to show internal directories.
Click to hide internal directories.