Class FitnessCollection

java.lang.Object
com.strategyquant.tradinglib.FitnessCollection

public class FitnessCollection extends Object
The Class FitnessCollection.
  • Constructor Details

    • FitnessCollection

      public FitnessCollection()
  • Method Details

    • getFitness

      public double getFitness(byte sampleType)
      Gets the fitness.
      Parameters:
      sampleType - the sample type
      Returns:
      the fitness
    • setFitness

      public void setFitness(byte sampleType, double fitness)
      Sets the fitness.
      Parameters:
      sampleType - the sample type
      fitness - the fitness
    • clone

      public FitnessCollection clone()
      Clone.
      Returns:
      the fitness collection
    • clear

      public void clear()
      Clear.
    • getXML

      public org.jdom2.Element getXML()
      Gets the xml.
      Returns:
      the xml
    • setFromXML

      public void setFromXML(org.jdom2.Element parent)
      Sets the from XML.
      Parameters:
      parent - the new from XML