Live Neuron object.
channelCount
integer |
number of output channels
|
creature
|
get owner creature
|
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.
|
def
|
Neuron definition from which this live neuron was built
|
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)+")");
|
getInputCount
integer |
get input count
|
hold
integer, 0 .. 1 (false/true) |
Hold state
|
inputSum
float |
full signal sum
|
joint
|
the Joint object where this neuron is located
|
part
|
the Part object where this neuron is located
|
position_x
float |
position x
|
position_y
float |
position y
|
position_z
float |
position z
|
signals
|
Signals
|
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)
|
weightedInputSum
float |
full weighted signal sum
|
getInputChannelCount
returns integer |
get channel count for input
function getInputChannelCount(integer input)
|
getInputState
returns float |
get input signal
function getInputState(integer input)
|
getInputStateChannel
returns float |
get input signal from channel
function getInputStateChannel(integer input, integer channel)
|
getInputSum
returns float |
get signal sum
function getInputSum(integer input)
|
getInputWeight
returns float |
get input weight
function getInputWeight(integer input)
|
getStateChannel
returns float |
get output state for channel
function getStateChannel(integer channel)
|
getWeightedInputState
returns float |
get weighted input signal
function getWeightedInputState(integer input)
|
getWeightedInputStateChannel
returns float |
get weighted input signal from channel
function getWeightedInputStateChannel(integer input, integer channel)
|
getWeightedInputSum
returns float |
get weighted signal sum
function getWeightedInputSum(integer input)
uses any number of inputs starting with the specified input. getWeightedInputSum(0)=weightedInputSum
|
setCurrStateChannel
doesn't return a value |
set neuron for channel
function setCurrStateChannel(integer channel, float value)
like "currState"
|
setStateChannel
doesn't return a value |
set output state for channel
function setStateChannel(integer channel, float value)
|