whistleClassifier
Class BasicFragmentStore
java.lang.Object
whistleClassifier.BasicFragmentStore
- All Implemented Interfaces:
- FragmentStore
- Direct Known Subclasses:
- HistoFragmentStore
public class BasicFragmentStore
- extends java.lang.Object
- implements FragmentStore
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sampleRate
private float sampleRate
fragmentCount
private double fragmentCount
parameteriser
protected FragmentParameteriser parameteriser
fragmentParams
private java.util.LinkedList<double[]> fragmentParams
fragments
private java.util.LinkedList<WhistleFragment> fragments
latestParams
private double[] latestParams
BasicFragmentStore
public BasicFragmentStore(float sampleRate)
getLatestParams
public double[] getLatestParams()
addFragemnt
public void addFragemnt(WhistleFragment newFragment)
- Specified by:
addFragemnt in interface FragmentStore
clearStore
public void clearStore()
- Specified by:
clearStore in interface FragmentStore
getFitHistogram
public PamHistogram getFitHistogram(int fit)
- Specified by:
getFitHistogram in interface FragmentStore
getFragmentCount
public double getFragmentCount()
- Specified by:
getFragmentCount in interface FragmentStore
getNegInflectionsHistogram
public PamHistogram getNegInflectionsHistogram()
- Specified by:
getNegInflectionsHistogram in interface FragmentStore
getParameterArray
public double[] getParameterArray()
- Specified by:
getParameterArray in interface FragmentStore
getPosInflectionsHistogram
public PamHistogram getPosInflectionsHistogram()
- Specified by:
getPosInflectionsHistogram in interface FragmentStore
prepareStore
public void prepareStore()
- Specified by:
prepareStore in interface FragmentStore
scaleStoreData
public void scaleStoreData(double scaleFactor)
- Specified by:
scaleStoreData in interface FragmentStore
setSampleRate
public void setSampleRate(float sampleRate)
- Parameters:
sampleRate - the sampleRate to set
getSampleRate
public float getSampleRate()
- Returns:
- the sampleRate