We model experiments in which a rat explores a rectangular enclosure. Before determining the behavior of the grid cells, we must simulate the rat's motion within its enclosure. We begin by uniformly discretizing over time and setting the parameters defined in
[link] and
[link] .
(width, height) of enclosure
rat's dimensions
rat's position
rat's velocity
rat's acceleration
length of each time interval
Parameter Definitions. The rat's motion is determined by its position, velocity, and acceleration vectors. We assume the rat is confined in a rectangular enclosure defined by its width
s
1 and height
We also assume the rat is rectangular and specify its its radius
where
r
1 is half the rat's length, and
r
2 is half the rat's width. We take the rat's position,
to be the location of the rat's center.
We let
We assume the rat's acceleration is constant over each time interval and set
for
We begin by initializing the rat's position and velocity,
and
Then,
, given
and
, we follow the algorithm outlined below to find
and
This algorithm is adapted from the algorithm presented by Samsonovich and Ascoli
[link] .
Algorithm: Simulation of the Rat's Motion
Select
from a Gaussian distribution with mean
and standard deviation
Set
If
for
the proposed new position,
is within the enclosure. Set
and
Proceed to step (4). If not, the proposed position is outside the enclosure. Reject
and
and repeat steps (1) through (3).
Set
By following the above algorithm, the rat's motion can be simulated for any finite length of time. There are two modifications to the above algorithm, however, that make the resulting path more realistic. First, specify a maximum velocity,
In step (4), if
reduce
to 90 percent of its value, effectively forcing the rat to decelerate over the next time interval. Second, if an acceptable value for
has not been found after several tries, set
This signifies that the rat has been stopped by a wall of the enclosure.
Distance to the grid
We define the distance of the rat to the grid using the metric
where
x denotes the position of the rat. We follow the algorithm outlined below to efficiently calculate
All formulas given are derived by examining the geometry of the grid and are based on the assumption that
[link] and
[link] each show an example of
that may assist in the understanding of the algorithm.
Algorithm: Calculation of
Find
, the projection of
x onto the meridian, given by
where
We have drawn a large square around this projection in
[link] .
Compute the two distances
and the associated integers
These values permit us to box in the position,
The four lines used to create this box are shown by dotted lines in
[link] and are given by
where
and
The line
b
1k parallels the latitudes, and the line
b
2k parallels the meridian, for
Find
and
the two elements of the grid
that lie on the boundary of the box. These two vertices are the closest vertices to the rat with respect to the metric
The four corners of the box are given by the four intersections of the lines
b
1k and
b
2k for
For
if
n
j is even,
b
j0 crosses only elements of
G
1 , and
b
j1 crosses only elements of
On the other hand, if
n
j is odd,
b
j0 crosses only elements of
and
b
j1 crosses only elements of
Thus, the two corners of the box corresponding to the grid vertices
g
1 and
g
2 form a diagonal pair given by solving
Calculate
Firing pattern
All that remains is to determine the firing pattern of the grid cell. Each grid cell has an efficacy value,
that incorporates a refractory period. When the cell spikes,
ε is set to 0. Then,
ε recovers exponentially to its base value of 1 at a rate determined by the time constant
where
t
s is the time of the most recent spike of the cell.
The probability,
, that a grid cell fires is then taken from a Gaussian distribution with a width dependent on the rat's distance to the grid, the grid's base, the cell's efficacy value, and the scaling parameter
The parameter
γ is a constant used to determine the spread of the firing fields of the grid cell. After calculating the probability
we select a random number
η from a uniform distribution. If
the grid cell fires; if
the grid cell does not fire. Figure 4 shows the resulting firing fields for three different values of
As expected, the firing fields of the grid cell form hexagonal patterns as the rat explores its enclosure.