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 |
getFfthop() |
int |
getFftLength() |
int |
getNumContours()
Get the number of contours in the data set.
|
int |
getNumFragments(WhistleFragmenter fragmenter,
int fragLen)
Get the number of fragments based on the fragment length
|
float |
getSampleRate() |
java.lang.String |
getSourceDataType() |
java.lang.String |
getSpecies() |
java.lang.String |
getStorageSource() |
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(double[] t, double[] f)
public java.lang.String getSpecies()
public long getTrainingTime()
public java.lang.String getSourceDataType()
public java.util.ArrayList<TrainingContour> getTrainingContours()
public 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, int fragLen)
fragLen
- length of each fragmentpublic java.lang.String getStorageSource()
public void setStorageSource(java.lang.String storageSource)