whistleClassifier
Class TrainingDataGroup
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
species
java.lang.String species
trainingDataSets
java.util.ArrayList<TrainingDataSet> trainingDataSets
TrainingDataGroup
public TrainingDataGroup(java.lang.String species)
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.