Class TrainingDataGroup

java.lang.Object
whistleClassifier.training.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.
    • getContoursPerSet

      public int[] getContoursPerSet()
    • getCumulativeContourCount

      public int[] getCumulativeContourCount()
    • setCumulativeContourCount

      public void setCumulativeContourCount(int[] cumulativeContourCount)
    • toString

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

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

      public TrainingContour getContour(int iContour)