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
 
- 
Field Summary
Fields inherited from class whistleClassifier.BasicFragmentStore
parameteriser - 
Constructor Summary
Constructors - 
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 SkewvoidCalled at run start, takes some basic parameters from the whistle detector and sets up histogram bins accordingly.voidsetSampleRate(float sampleRate) Methods inherited from class whistleClassifier.BasicFragmentStore
getEndTimeMillis, getFragmentCount, getFragmentIterator, getHighFreq, getLatestParams, getLowFreq, getParameterArray, getSampleRate, getStartTimeMillis, scaleStoreData 
- 
Constructor Details
- 
HistoFragmentStore
public HistoFragmentStore(float sampleRate)  
 - 
 - 
Method Details
- 
setSampleRate
public void setSampleRate(float sampleRate) - Overrides:
 setSampleRatein classBasicFragmentStore- Parameters:
 sampleRate- the sampleRate to set
 - 
addFragemnt
Description copied from interface:FragmentStoreAdd a whistle fragment to the store- Specified by:
 addFragemntin interfaceFragmentStore- Overrides:
 addFragemntin classBasicFragmentStore- Parameters:
 newFragment- fragmenttime- fragment time in milliseconds
 - 
prepareStore
public void prepareStore()Called at run start, takes some basic parameters from the whistle detector and sets up histogram bins accordingly.- Specified by:
 prepareStorein interfaceFragmentStore- Overrides:
 prepareStorein classBasicFragmentStore
 - 
clearStore
public void clearStore()Description copied from interface:FragmentStoreClear the store of existing data.- Specified by:
 clearStorein interfaceFragmentStore- Overrides:
 clearStorein classBasicFragmentStore
 - 
getFitHistogram
Description copied from interface:FragmentStoreGet one of the histograms for mean, STD and Skew- Specified by:
 getFitHistogramin interfaceFragmentStore- Overrides:
 getFitHistogramin classBasicFragmentStore- Parameters:
 iFit- histogram number (0, 1 or 2)- Returns:
 - histogram object.
 
 - 
getNegInflectionsHistogram
- Specified by:
 getNegInflectionsHistogramin interfaceFragmentStore- Overrides:
 getNegInflectionsHistogramin classBasicFragmentStore- Returns:
 - the negative inflections histogram
 
 - 
getPosInflectionsHistogram
- Specified by:
 getPosInflectionsHistogramin interfaceFragmentStore- Overrides:
 getPosInflectionsHistogramin classBasicFragmentStore- Returns:
 - the positive inflections histogram.
 
 
 -