MexicanHatGenerator
- class spikeometric.datasets.MexicanHatGenerator(n_neurons: float, a: float, sigma_1: float, sigma_2: float)[source]
Bases:
spikeometric.datasets.connectivity_generator.ConnectivityGeneratorA dataset of connectivity matrices for ring-networks of neurons, with weights generated from a Mexican hat distribution.
- generate_W0()[source]
Generate a ring network with a Mexican hat distribution of weights between neurons. The weights follow the equation:
\[W_{ij} = \exp\left(-\frac{d_{i,j}^2}{2\sigma_1^2}\right) - a\exp\left(-\frac{d{i,j}^2}{2\sigma_2^2}\right)\]with \(d_{i,j}\) the distance between neurons \(i\) and \(j\) on the ring in number of neurons.