Class TrainingDataGroup

java.lang.Object
whistleClassifier.TrainingDataGroup

public class TrainingDataGroup extends Object
A group of training data from a single species

Basically a list of TrainingDataSet objects

Author:
Doug Gillespie
See Also:
  • Constructor Details

    • TrainingDataGroup

      public TrainingDataGroup(String species)
  • Method Details

    • addDataSet

      public void addDataSet(TrainingDataSet trainingDataSet)
    • getNumDataSets

      public int getNumDataSets()
    • getDataSet

      public TrainingDataSet getDataSet(int i)
    • getNumContours

      public int getNumContours()
      Get the number of contours in the data group.
      Returns:
      number of contours.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getNumFragments

      public int getNumFragments(WhistleFragmenter fragmenter, int fragLen)
      Get the number of fragments based on the fragment length
      Parameters:
      fragLen - length of each fragment
      Returns:
      number of fragments.