Troppmann, Tom %!s(int64=4) %!d(string=hai) anos
pai
achega
0351412397
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));