Package whistleClassifier.training
Class TrainingDataGroup
java.lang.Object
whistleClassifier.training.TrainingDataGroup
A group of training data from a single species
Basically a list of TrainingDataSet objects
- Author:
- Doug Gillespie
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataSet
(TrainingDataSet trainingDataSet) getContour
(int iContour) int[]
int[]
getDataSet
(int i) int
Get the number of contours in the data group.int
int
getNumFragments
(WhistleFragmenter fragmenter, double minFreq, double maxFreq, int minContourLength) Get the number of fragments based on the fragment lengthvoid
setCumulativeContourCount
(int[] cumulativeContourCount) toString()
-
Constructor Details
-
TrainingDataGroup
-
-
Method Details
-
addDataSet
-
getNumDataSets
public int getNumDataSets() -
getDataSet
-
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
-
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
-