Neuro class in Neuron definitions

Live Neuron object.

27 members:

integer channelCount
integer

number of output channels

object creature

get owner creature

float currState
float

neuron state (channel 0)

the only difference from the "state" field is that currState, when written, changes the internal neuron state immediately (which disturbs the regular synchronous NN operation). This feature should only be used while controlling the neuron 'from outside' (like a neuro probe) and not in the neuron definition.

object def

Neuron definition from which this live neuron was built

object fields

custom neuron fields

Neurons can have different fields depending on their class. Script neurons have their fields defined using the "prop:" syntax. If you develop a custom neuron script you should use the Fields object for accessing your own neuron fields. The Neuro.fields property is meant for accessing the neuron fields from the outside script.
Examples:
var c=Populations.createFromString("X[N]");
Simulator.print("standard neuron inertia="+c.getNeuro(0).fields.in);
c=Populations.createFromString("X[Nn,e:0.1]");
Simulator.print("noisy neuron error rate="+c.getNeuro(0).fields.e);

The Interface object can be used to discover which fields are available for a certain neuron object:
c=Populations.createFromString("X[N]");
var iobj=Interface.makeFrom(c.getNeuro(0).fields);
var i;
for(i=0;i<iobj.properties;i++)
Simulator.print(iobj.getId(i)+" ("+iobj.getName(i)+")");

integer getInputCount
integer

get input count

integer hold
integer, 0 .. 1 (false/true)

Hold state

float inputSum
float

full signal sum

object joint

the Joint object where this neuron is located

object part

the Part object where this neuron is located

float position_x
float

position x

float position_y
float

position y

float position_z
float

position z

object signals

Signals

float state
float

neuron state (channel 0)

when read, returns the current neuron state.
When written, sets the next neuron state (for use in the neuron definition)

float weightedInputSum
float

full weighted signal sum

function getInputChannelCount
returns integer

get channel count for input

function getInputChannelCount(integer input)
function getInputState
returns float

get input signal

function getInputState(integer input)
function getInputStateChannel
returns float

get input signal from channel

function getInputStateChannel(integer input, integer channel)
function getInputSum
returns float

get signal sum

function getInputSum(integer input)
function getInputWeight
returns float

get input weight

function getInputWeight(integer input)
function getStateChannel
returns float

get output state for channel

function getStateChannel(integer channel)
function getWeightedInputState
returns float

get weighted input signal

function getWeightedInputState(integer input)
function getWeightedInputStateChannel
returns float

get weighted input signal from channel

function getWeightedInputStateChannel(integer input, integer channel)
function getWeightedInputSum
returns float

get weighted signal sum

function getWeightedInputSum(integer input)

uses any number of inputs starting with the specified input. getWeightedInputSum(0)=weightedInputSum

function setCurrStateChannel
doesn't return a value

set neuron for channel

function setCurrStateChannel(integer channel, float value)

like "currState"

function setStateChannel
doesn't return a value

set output state for channel

function setStateChannel(integer channel, float value)

Global context>>Experiment definition>>Neuron definitions