whistleClassifier
Class HistoFragmentStore

java.lang.Object
  extended by whistleClassifier.BasicFragmentStore
      extended by 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

Field Summary
private  PamHistogram[] fitHistograms
           
private  PamHistogram negInflections
           
private  PamHistogram posInflections
           
 
Fields inherited from class whistleClassifier.BasicFragmentStore
parameteriser
 
Constructor Summary
HistoFragmentStore(float sampleRate)
           
 
Method Summary
 void addFragemnt(WhistleFragment newFragment)
           
 void clearStore()
           
 PamHistogram getFitHistogram(int iFit)
           
 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)
           
 
Methods inherited from class whistleClassifier.BasicFragmentStore
getFragmentCount, getLatestParams, getParameterArray, getSampleRate, scaleStoreData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fitHistograms

private PamHistogram[] fitHistograms

posInflections

private PamHistogram posInflections

negInflections

private PamHistogram negInflections
Constructor Detail

HistoFragmentStore

public HistoFragmentStore(float sampleRate)
Method Detail

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