Interface FragmentStore

All Known Implementing Classes:
BasicFragmentStore, HistoFragmentStore

public interface FragmentStore
Store for lots of whistle fragments during whistle classification
Author:
Doug Gillespie
  • Method Details

    • addFragemnt

      void addFragemnt(WhistleFragment newFragment)
      Add a whistle fragment to the store
      Parameters:
      newFragment - fragment
    • prepareStore

      void prepareStore()
      Prepare the store to receive new data.
    • clearStore

      void clearStore()
      Clear the store of existing data.
    • scaleStoreData

      void scaleStoreData(double scaleFactor)
      Remove a fraction of the fragments from the store
      Parameters:
      scaleFactor - fraction of fragments ot leave
    • getParameterArray

      double[] getParameterArray()
      Get the parameters (9 of them) describing the fragments in this store.
      Returns:
    • getFitHistogram

      PamHistogram getFitHistogram(int iFit)
      Get one of the histograms for mean, STD and Skew
      Parameters:
      iFit - histogram number (0, 1 or 2)
      Returns:
      histogram object.
    • getNegInflectionsHistogram

      PamHistogram getNegInflectionsHistogram()
      Returns:
      the negative inflections histogram
    • getPosInflectionsHistogram

      PamHistogram getPosInflectionsHistogram()
      Returns:
      the positive inflections histogram.
    • getFragmentCount

      double getFragmentCount()