whistleClassifier
Class HistoFragmentStore
java.lang.Object
whistleClassifier.BasicFragmentStore
whistleClassifier.HistoFragmentStore
- All Implemented Interfaces:
- FragmentStore
public class HistoFragmentStore
- extends BasicFragmentStore
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fitHistograms
private PamHistogram[] fitHistograms
posInflections
private PamHistogram posInflections
negInflections
private PamHistogram negInflections
HistoFragmentStore
public HistoFragmentStore(float sampleRate)
setSampleRate
public void setSampleRate(float sampleRate)
- Overrides:
setSampleRate in class BasicFragmentStore
- Parameters:
sampleRate - the sampleRate to set
addFragemnt
public void addFragemnt(WhistleFragment newFragment)
- Specified by:
addFragemnt in interface FragmentStore- Overrides:
addFragemnt in class BasicFragmentStore
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 interface FragmentStore- Overrides:
prepareStore in class BasicFragmentStore
clearStore
public void clearStore()
- Specified by:
clearStore in interface FragmentStore- Overrides:
clearStore in class BasicFragmentStore
getFitHistogram
public PamHistogram getFitHistogram(int iFit)
- Specified by:
getFitHistogram in interface FragmentStore- Overrides:
getFitHistogram in class BasicFragmentStore
getNegInflectionsHistogram
public PamHistogram getNegInflectionsHistogram()
- Specified by:
getNegInflectionsHistogram in interface FragmentStore- Overrides:
getNegInflectionsHistogram in class BasicFragmentStore
getPosInflectionsHistogram
public PamHistogram getPosInflectionsHistogram()
- Specified by:
getPosInflectionsHistogram in interface FragmentStore- Overrides:
getPosInflectionsHistogram in class BasicFragmentStore