Package whistleClassifier
Interface FragmentStore
- All Known Implementing Classes:
BasicFragmentStore,HistoFragmentStore
public interface FragmentStore
Store for lots of whistle fragments during whistle classification
- Author:
- Doug Gillespie
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFragemnt(WhistleFragment newFragment, long time) Add a whistle fragment to the storevoidClear the store of existing data.getFitHistogram(int iFit) Get one of the histograms for mean, STD and Skewdoubledouble[]Get the parameters (9 of them) describing the fragments in this store.voidPrepare the store to receive new data.voidscaleStoreData(double scaleFactor) Remove a fraction of the fragments from the store
-
Method Details
-
addFragemnt
Add a whistle fragment to the store- Parameters:
newFragment- fragmenttime- fragment time in milliseconds
-
prepareStore
void prepareStore()Prepare the store to receive new data. -
clearStore
void clearStore()Clear the store of existing data. -
scaleStoreData
void scaleStoreData(double scaleFactor) Remove a fraction of the fragments from the store- Parameters:
scaleFactor- fraction of fragments ot leave
-
getParameterArray
double[] getParameterArray()Get the parameters (9 of them) describing the fragments in this store.- Returns:
-
getFitHistogram
Get one of the histograms for mean, STD and Skew- Parameters:
iFit- histogram number (0, 1 or 2)- Returns:
- histogram object.
-
getNegInflectionsHistogram
PamHistogram getNegInflectionsHistogram()- Returns:
- the negative inflections histogram
-
getPosInflectionsHistogram
PamHistogram getPosInflectionsHistogram()- Returns:
- the positive inflections histogram.
-
getFragmentCount
double getFragmentCount()
-