public class HistoFragmentStore extends BasicFragmentStore
Constructor and Description |
---|
HistoFragmentStore(float sampleRate) |
Modifier and Type | Method and Description |
---|---|
void |
addFragemnt(WhistleFragment newFragment)
Add a whistle fragment to the store
|
void |
clearStore()
Clear the store of existing data.
|
PamHistogram |
getFitHistogram(int iFit)
Get one of the histograms for mean, STD and Skew
|
PamHistogram |
getNegInflectionsHistogram() |
PamHistogram |
getPosInflectionsHistogram() |
void |
prepareStore()
Called at run start, takes some basic parameters from the whistle
detector and sets up histogram bins accordingly.
|
void |
setSampleRate(float sampleRate) |
getFragmentCount, getFragmentIterator, getLatestParams, getParameterArray, getSampleRate, scaleStoreData
public void setSampleRate(float sampleRate)
setSampleRate
in class BasicFragmentStore
sampleRate
- the sampleRate to setpublic void addFragemnt(WhistleFragment newFragment)
FragmentStore
addFragemnt
in interface FragmentStore
addFragemnt
in class BasicFragmentStore
newFragment
- fragmentpublic void prepareStore()
prepareStore
in interface FragmentStore
prepareStore
in class BasicFragmentStore
public void clearStore()
FragmentStore
clearStore
in interface FragmentStore
clearStore
in class BasicFragmentStore
public PamHistogram getFitHistogram(int iFit)
FragmentStore
getFitHistogram
in interface FragmentStore
getFitHistogram
in class BasicFragmentStore
iFit
- histogram number (0, 1 or 2)public PamHistogram getNegInflectionsHistogram()
getNegInflectionsHistogram
in interface FragmentStore
getNegInflectionsHistogram
in class BasicFragmentStore
public PamHistogram getPosInflectionsHistogram()
getPosInflectionsHistogram
in interface FragmentStore
getPosInflectionsHistogram
in class BasicFragmentStore