A monkey moves a handle from the centre of a table to a light. Each cell in its motor cortex fires most for one direction of movement and less for others. No single cell says where the hand is going, but if every cell votes for its preferred direction, in proportion to how much its firing has changed, the sum of the votes points where the hand will go, before the hand moves.
Based on the experiments of Georgopoulos and colleagues (1982–1989). Cells, firing rates, and timing are simulated with values of the right order for monkey motor cortex.
Population vector
Statistics
Every simulated millisecond, the program does four things:
The readout knows each cell's preferred direction, average rate, and depth of tuning, as the experimenters did after fitting each cell's tuning curve. It knows nothing else: not the target, not the hand, not the task.
The code that is running. The listings below are read from the live program, so they are exactly what the simulation executes.
Changes take effect from the next trial, except population size, which restarts the experiment.