org.dishevelled.swarm
Interface Particle


public interface Particle

Particle in a particle swarm.

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

Method Summary
 double[] getCognitiveMemory()
          Return a view of the cognitive memory matrix for this particle.
 int getDimensions()
          Return the number of dimensions for this particle.
 double getFitness()
          Return the fitness for this particle.
 double[] getPosition()
          Return a view of the position matrix for this particle.
 double[] getVelocity()
          Return a view of the velocity matrix for this particle.
 

Method Detail

getDimensions

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

Returns:
the number of dimensions for this particle

getFitness

double getFitness()
Return the fitness for this particle.

Returns:
the fitness for this particle

getPosition

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

Returns:
a view of the position matrix for this particle

getVelocity

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

Returns:
a view of the velocity matrix for this particle

getCognitiveMemory

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

Returns:
a view of the cognitive memory matrix for this particle


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