diff options
Diffstat (limited to 'src/jcgp/backend/population')
-rw-r--r-- | src/jcgp/backend/population/Chromosome.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jcgp/backend/population/Chromosome.java b/src/jcgp/backend/population/Chromosome.java index 71e19ec..f8830fa 100644 --- a/src/jcgp/backend/population/Chromosome.java +++ b/src/jcgp/backend/population/Chromosome.java @@ -15,7 +15,7 @@ public class Chromosome { private ArrayList<Node> activeNodes; - private int fitness = 0; + private double fitness = 0; private boolean recomputeActiveNodes = true; /** @@ -154,11 +154,11 @@ public class Chromosome { return inputs[index]; } - public int getFitness() { + public double getFitness() { return fitness; } - public void setFitness(int newFitness) { + public void setFitness(double newFitness) { fitness = newFitness; } |