package ac.essex.ooechs.facedetection.evolved.ga.genes;

import ga.core.GAGene;

public class HeightGene extends GAGene {

    public static int maxValue;

    public HeightGene() {
        super(1, maxValue);
    }

    public double getInitialValue() {
       // X may be any number up to the width of the image minus 2
       int x = (int) (Math.random() * maxValue);
       if (x < 1) x = 1;
       return x;
    }

}