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 TypeMethodDescriptionvoid
addFragemnt
(WhistleFragment newFragment) Add a whistle fragment to the storevoid
Clear the store of existing data.getFitHistogram
(int iFit) Get one of the histograms for mean, STD and Skewdouble
double[]
Get the parameters (9 of them) describing the fragments in this store.void
Prepare the store to receive new data.void
scaleStoreData
(double scaleFactor) Remove a fraction of the fragments from the store
-
Method Details
-
addFragemnt
Add a whistle fragment to the store- Parameters:
newFragment
- fragment
-
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()
-