pso.neighborhood.K4: pso.neighborhood.K4

View source: R/abm-pso.R

pso.neighborhood.K4R Documentation

pso.neighborhood.K4

Description

The von neumann neighborhood function for a lattice-based topology where every particle has k = 4 neighbors

Usage

pso.neighborhood.K4(i, n)

Arguments

i

The particle position

n

the size of particle population


evoper documentation built on Jan. 28, 2026, 5:06 p.m.