net.sourceforge.cilib.pso.positionupdatestrategies
Class MemoryNeighbourhoodBestUpdateStrategy
java.lang.Object
net.sourceforge.cilib.pso.positionupdatestrategies.MemoryNeighbourhoodBestUpdateStrategy
- All Implemented Interfaces:
- Serializable, NeighbourhoodBestUpdateStrategy, Cloneable
public class MemoryNeighbourhoodBestUpdateStrategy
- extends Object
- implements NeighbourhoodBestUpdateStrategy
This class.....
- Author:
- Gary Pampara
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryNeighbourhoodBestUpdateStrategy
public MemoryNeighbourhoodBestUpdateStrategy()
getClone
public MemoryNeighbourhoodBestUpdateStrategy getClone()
- Description copied from interface:
NeighbourhoodBestUpdateStrategy
- Create a cloned copy of the current object and return it. In general
the created copy will be a deep copy of the provided instance. As
a result this operation an be quite expensive if used incorrectly.
- Specified by:
getClone
in interface NeighbourhoodBestUpdateStrategy
- Specified by:
getClone
in interface Cloneable
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
getSocialBestFitness
public Fitness getSocialBestFitness(Entity entity)
- Get the social best fitness of the entity. This returns the fitness of the
entity's personal best.
- Specified by:
getSocialBestFitness
in interface NeighbourhoodBestUpdateStrategy
- Parameters:
entity
- The Entity to determine the social best fitness from.
- Returns:
- The fitness of the
Entity
's personal best (pbest)
Copyright © 2009 CIRG. All Rights Reserved.