Troppmann, Tom 4 gadi atpakaļ
vecāks
revīzija
0351412397
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/algorithm/topologie/PsoAlgorithm.java

+ 1 - 1
src/algorithm/topologie/PsoAlgorithm.java

@@ -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));