public abstract class TrainingSelector
extends java.lang.Object
TrainingDataCollection
,
WhistleFragmenter
Constructor and Description |
---|
TrainingSelector() |
Modifier and Type | Method and Description |
---|---|
int |
getNumSpecies() |
abstract int |
getNumTestSets() |
double[][] |
getParameterArray(int testTrainSet)
Get a parameter array for feeding straight into the classifier for either the
training set or the test set.
|
int |
getTotalFragments(int iSpecies,
double minFreq,
double maxFreq,
int minContourLength) |
TrainingDataCollection |
getTrainingDataCollection()
get the training data collection
|
WhistleFragmenter |
getWhistleFragmenter()
Get the whistle fragmenter
|
void |
setTrainingDataCollection(TrainingDataCollection trainingDataCollection)
Sets the training data collection
|
void |
setWhistleFragmenter(WhistleFragmenter whistleFragmenter)
Set the whistle fragmenter to use.
|
public void setTrainingDataCollection(TrainingDataCollection trainingDataCollection)
trainingDataCollection
- training datapublic TrainingDataCollection getTrainingDataCollection()
public void setWhistleFragmenter(WhistleFragmenter whistleFragmenter)
whistleFragmenter
- whistle fragmenterpublic WhistleFragmenter getWhistleFragmenter()
public int getNumSpecies()
public abstract int getNumTestSets()
public int getTotalFragments(int iSpecies, double minFreq, double maxFreq, int minContourLength)
public double[][] getParameterArray(int testTrainSet)
testTrainSet
- index o set: 0 = training; 1 - n = test.