|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jswarm_pso.ParticleUpdate
net.sourceforge.jswarm_pso.ParticleUpdateRepulsive
public class ParticleUpdateRepulsive
Particle update strategy Warning: It's designed to be used with SwarmRepulsive swarms
| Field Summary | |
|---|---|
(package private) double |
randRand
Random factor for random velocity update |
(package private) double[] |
rlocal
Random vector for local update |
(package private) double[] |
rother
Random vector for global update |
| Constructor Summary | |
|---|---|
ParticleUpdateRepulsive(Particle particle)
Constructor |
|
| Method Summary | |
|---|---|
void |
begin(Swarm swarm)
This method is called at the begining of each iteration Initialize random vectors use for local and global updates (rlocal[] and rother[]) |
void |
update(Swarm swarm,
Particle particle)
Update particle's position and velocity using repulsive algorithm |
| Methods inherited from class net.sourceforge.jswarm_pso.ParticleUpdate |
|---|
end |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
double[] rlocal
double[] rother
double randRand
| Constructor Detail |
|---|
public ParticleUpdateRepulsive(Particle particle)
particle - : Sample of particles that will be updated later| Method Detail |
|---|
public void begin(Swarm swarm)
begin in class ParticleUpdate
public void update(Swarm swarm,
Particle particle)
update in class ParticleUpdate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||