commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1309531 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/genetics/ElitisticListPopulation.java
Date Wed, 04 Apr 2012 18:44:01 GMT
Author: tn
Date: Wed Apr  4 18:44:00 2012
New Revision: 1309531

URL: http://svn.apache.org/viewvc?rev=1309531&view=rev
Log:
Javadoc and formatting fixes in ElitisticListPopulation.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/genetics/ElitisticListPopulation.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/genetics/ElitisticListPopulation.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/genetics/ElitisticListPopulation.java?rev=1309531&r1=1309530&r2=1309531&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/genetics/ElitisticListPopulation.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/genetics/ElitisticListPopulation.java
Wed Apr  4 18:44:00 2012
@@ -36,7 +36,7 @@ public class ElitisticListPopulation ext
     private double elitismRate = 0.9;
 
     /**
-     * Creates a new ElitisticListPopulation instance.
+     * Creates a new {@link ElitisticListPopulation} instance.
      *
      * @param chromosomes list of chromosomes in the population
      * @param populationLimit maximal size of the population
@@ -52,7 +52,7 @@ public class ElitisticListPopulation ext
     }
 
     /**
-     * Creates a new ListPopulation instance and initializes its inner
+     * Creates a new {@link ElitisticListPopulation} instance and initializes its inner
      * chromosome list.
      *
      * @param populationLimit maximal size of the population
@@ -73,7 +73,8 @@ public class ElitisticListPopulation ext
      */
     public Population nextGeneration() {
         // initialize a new generation with the same parameters
-        ElitisticListPopulation nextGeneration = new ElitisticListPopulation(this.getPopulationLimit(),
this.getElitismRate());
+        ElitisticListPopulation nextGeneration =
+                new ElitisticListPopulation(this.getPopulationLimit(), this.getElitismRate());
 
         List<Chromosome> oldChromosomes = this.getChromosomes();
         Collections.sort(oldChromosomes);



Mime
View raw message