Package pulse.search.direction.pso
Class ParticleState
- java.lang.Object
-
- pulse.search.direction.pso.ParticleState
-
public class ParticleState extends Object
-
-
Constructor Summary
Constructors Constructor Description ParticleState(ParameterVector cur)
ParticleState(ParameterVector p, ParameterVector v)
ParticleState(ParticleState another)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getFitness()
ParameterVector
getPosition()
ParameterVector
getVelocity()
boolean
isBetterThan(ParticleState s)
void
randomise(ParameterVector pos)
protected void
setFitness(double fitness)
-
-
-
Constructor Detail
-
ParticleState
public ParticleState(ParameterVector cur)
-
ParticleState
public ParticleState(ParticleState another)
-
ParticleState
public ParticleState(ParameterVector p, ParameterVector v)
-
-
Method Detail
-
isBetterThan
public boolean isBetterThan(ParticleState s)
-
randomise
public final void randomise(ParameterVector pos)
-
getPosition
public ParameterVector getPosition()
-
getVelocity
public ParameterVector getVelocity()
-
getFitness
public double getFitness()
-
setFitness
protected void setFitness(double fitness)
-
-