org.dishevelled.swarm
Interface ParticleSwarm

All Superinterfaces:
Iterable<Particle>
All Known Implementing Classes:
ParticleSwarmImpl

public interface ParticleSwarm
extends Iterable<Particle>

Particle swarm.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Method Summary
 int getDimensions()
          Return the number of dimensions for this particle swarm.
 int getParticles()
          Return the number of particles in this particle swarm.
 double[] getSocialMemory()
          Return a view of the social memory matrix for this particle swarm.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getParticles

int getParticles()
Return the number of particles in this particle swarm.

Returns:
the number of particles in this particle swarm

getDimensions

int getDimensions()
Return the number of dimensions for this particle swarm.

Returns:
the number of dimensions for this particle swarm

getSocialMemory

double[] getSocialMemory()
Return a view of the social memory matrix for this particle swarm. The length of the array will be equal to the number of dimensions for this particle swarm.

Returns:
a view of the social memory matrix for this particle swarm


Copyright © 2006-2012 dishevelled.org. All Rights Reserved.