powered by
The von neumann neighborhood function for a lattice-based topology where every particle has k = 4 neighbors
pso.neighborhood.K4(i, n)
The particle position
the size of particle population