public class TrainingDataSet
extends java.lang.Object
implements java.io.Serializable
For each species, several of these will probably be held in a TrainingDataGroup
TrainingDataGroup
,
Serialized FormModifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
TrainingDataSet(java.lang.Class sourceDataClass,
java.lang.String species,
float sampleRate,
int fftLength,
int ffthop) |
Modifier and Type | Method and Description |
---|---|
int |
addContour(double[] t,
double[] f) |
int |
addContour(WhistleContour contour) |
int |
getFfthop() |
int |
getFftLength() |
int |
getNumContours()
Get the number of contours in the data set.
|
int |
getNumFragments(WhistleFragmenter fragmenter,
double minFreq,
double maxFreq,
int minContourLength)
Get the number of fragments based on the fragment length
|
float |
getSampleRate() |
java.lang.String |
getSourceDataType() |
java.lang.String |
getSpecies() |
java.lang.String |
getStorageSource() |
TrainingContour |
getTrainingContour(int iContour)
Get a specific training contour
|
java.util.ArrayList<TrainingContour> |
getTrainingContours() |
long |
getTrainingTime() |
void |
setFfthop(int ffthop) |
void |
setFftLength(int fftLength) |
void |
setSampleRate(float sampleRate) |
void |
setSpecies(java.lang.String species) |
void |
setStorageSource(java.lang.String storageSource) |
java.lang.String |
toString() |
public static final long serialVersionUID
public TrainingDataSet(java.lang.Class sourceDataClass, java.lang.String species, float sampleRate, int fftLength, int ffthop)
public java.lang.String toString()
toString
in class java.lang.Object
public int addContour(WhistleContour contour)
public int addContour(double[] t, double[] f)
public java.lang.String getSpecies()
public long getTrainingTime()
public java.lang.String getSourceDataType()
public java.util.ArrayList<TrainingContour> getTrainingContours()
public TrainingContour getTrainingContour(int iContour)
iContour
- contour indexpublic void setSpecies(java.lang.String species)
public int getFftLength()
public void setFftLength(int fftLength)
public float getSampleRate()
public void setSampleRate(float sampleRate)
public int getFfthop()
public void setFfthop(int ffthop)
public int getNumContours()
public int getNumFragments(WhistleFragmenter fragmenter, double minFreq, double maxFreq, int minContourLength)
fragLen
- length of each fragmentpublic java.lang.String getStorageSource()
public void setStorageSource(java.lang.String storageSource)