ctrnn.core

Simulates Continuous-Time Recurrent Neural Networks (CTRNNs).

activation

(activation neuron)
Return current activation (firing frequency) of neuron.

add-neuron

(add-neuron ctrnn neuron)
Return CTRNN with neuron added.

add-synapse

(add-synapse neuron from-neuron strength)
Return neuron with new synaptic connection added.

make-ctrnn

(make-ctrnn initial-neurons timestep)
Return a new CTRNN with initial neurons and a set integration timestep.

make-neuron

(make-neuron bias time-constant & {:keys [id]})
Return new neuron with given bias and time-constant.

neuron

(neuron ctrnn id)

neurons

(neurons ctrnn)
Return a seq of all neurons in the CTRNN.

set-bias

(set-bias neuron bias)
Return neuron with bias set to given value.

set-external-current

(set-external-current neuron external-current)
Return neuron with external current set to given value.

update-ctrnn

(update-ctrnn ctrnn)
Return CTRNN with neuron membrane potentials updated to next timestep.

update-membrane-potential

(update-membrane-potential n ctrnn)
Return neuron with membrane potential updated to next timestep.

update-neuron

(update-neuron ctrnn neuron-id function & args)
Return CTRNN with neuron of given id replaced by result from calling function
with neuron as first argument + rest args.