|
@@ -239,7 +239,7 @@ public class PsoAlgorithm extends TopologieAlgorithmFramework {
|
|
|
* @param index
|
|
|
*/
|
|
|
private void decode(Particle particle, int index) {
|
|
|
- double value = clamp(Random.nextGaussian(particle.xGenotype.get(index), 0.5));
|
|
|
+ double value = clamp(Random.nextGaussian(particle.xGenotype.get(index), deviation));
|
|
|
double alpha = inverseLinearInterpolation(-maxVelocity, +maxVelocity, value);
|
|
|
double result = linearInterpolate(0, this.getMaximumIndexObjects(index), alpha);
|
|
|
particle.xPhenotype.set(index, (int)Math.round(result));
|