whistleClassifier
Class TrainingDataGroup

java.lang.Object
  extended by whistleClassifier.TrainingDataGroup

public class TrainingDataGroup
extends java.lang.Object

A group of training data from a single species

Basically a list of TrainingDataSet objects

Author:
Doug Gillespie
See Also:
TrainingDataSet

Field Summary
(package private)  java.lang.String species
           
(package private)  java.util.ArrayList<TrainingDataSet> trainingDataSets
           
 
Constructor Summary
TrainingDataGroup(java.lang.String species)
           
 
Method Summary
 void addDataSet(TrainingDataSet trainingDataSet)
           
 TrainingDataSet getDataSet(int i)
           
 int getNumContours()
          Get the number of contours in the data group.
 int getNumDataSets()
           
 int getNumFragments(WhistleFragmenter fragmenter, int fragLen)
          Get the number of fragments based on the fragment length
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

species

java.lang.String species

trainingDataSets

java.util.ArrayList<TrainingDataSet> trainingDataSets
Constructor Detail

TrainingDataGroup

public TrainingDataGroup(java.lang.String species)
Method Detail

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 java.lang.String toString()
Overrides:
toString in class java.lang.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.