InputArray
self, geometry=None, name=None, copied=False) inputs.InputArray.InputArray(
Population holding static inputs for a rate-coded network.
The input values are stored in the recordable attribute r
, without any further processing.
= ann.InputArray(geometry=10)
inp = np.linspace(1, 10, 10)
inp.r
= ann.Population(100, ...)
pop
= ann.Projection(inp, pop, 'exc')
proj 1.0) proj.connect_all_to_all(
Note that this population is functionally equivalent to:
= ann.Population(geometry, ann.Neuron(parameters="r=0.0")) inp
but r
is recordable.
Parameters
Name | Type | Description | Default |
---|---|---|---|
geometry | int | tuple | shape of the population, either an integer or a tuple. | None |