Package whistleClassifier
Class HistoFragmentStore
java.lang.Object
whistleClassifier.BasicFragmentStore
whistleClassifier.HistoFragmentStore
- All Implemented Interfaces:
FragmentStore
Doesnt' store fragemnts individually - just adds their data to a series of
histograms and whenever the parameters are requried, it estimates those
parameters based on the contents of the histograms.
- Author:
- Douglas Gillespie
-
Constructor Summary
-
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 Skewvoid
Called at run start, takes some basic parameters from the whistle detector and sets up histogram bins accordingly.void
setSampleRate
(float sampleRate) Methods inherited from class whistleClassifier.BasicFragmentStore
getFragmentCount, getFragmentIterator, getLatestParams, getParameterArray, getSampleRate, scaleStoreData
-
Constructor Details
-
HistoFragmentStore
public HistoFragmentStore(float sampleRate)
-
-
Method Details
-
setSampleRate
public void setSampleRate(float sampleRate) - Overrides:
setSampleRate
in classBasicFragmentStore
- Parameters:
sampleRate
- the sampleRate to set
-
addFragemnt
Description copied from interface:FragmentStore
Add a whistle fragment to the store- Specified by:
addFragemnt
in interfaceFragmentStore
- Overrides:
addFragemnt
in classBasicFragmentStore
- Parameters:
newFragment
- fragment
-
prepareStore
public void prepareStore()Called at run start, takes some basic parameters from the whistle detector and sets up histogram bins accordingly.- Specified by:
prepareStore
in interfaceFragmentStore
- Overrides:
prepareStore
in classBasicFragmentStore
-
clearStore
public void clearStore()Description copied from interface:FragmentStore
Clear the store of existing data.- Specified by:
clearStore
in interfaceFragmentStore
- Overrides:
clearStore
in classBasicFragmentStore
-
getFitHistogram
Description copied from interface:FragmentStore
Get one of the histograms for mean, STD and Skew- Specified by:
getFitHistogram
in interfaceFragmentStore
- Overrides:
getFitHistogram
in classBasicFragmentStore
- Parameters:
iFit
- histogram number (0, 1 or 2)- Returns:
- histogram object.
-
getNegInflectionsHistogram
- Specified by:
getNegInflectionsHistogram
in interfaceFragmentStore
- Overrides:
getNegInflectionsHistogram
in classBasicFragmentStore
- Returns:
- the negative inflections histogram
-
getPosInflectionsHistogram
- Specified by:
getPosInflectionsHistogram
in interfaceFragmentStore
- Overrides:
getPosInflectionsHistogram
in classBasicFragmentStore
- Returns:
- the positive inflections histogram.
-