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