neurotools.spatial.spiking module

Utilities related to spatial analysis of spiking data

neurotools.spatial.spiking.interp_bin(xypoints, n, eps=1e-09)[source]
Parameters:
  • xypoints (np.array) – npoints x 2 array of point locations, all points must be in [0,1]²

  • n (positive int) – number of bins; binning grid is n x n 2D

  • eps (float) – Default is 1e-9; small padding to prevent points form falling outside boundary

Returns:

hist – n x n 2D histogram, computed using interpolation

Return type:

np.array