Troppmann, Tom преди 4 години
родител
ревизия
0351412397
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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));