Class MatchTemplate

java.lang.Object
matchedTemplateClassifer.MatchTemplate
All Implemented Interfaces:
Serializable, Cloneable, RawDataHolder, ManagedParameters

public class MatchTemplate extends Object implements RawDataHolder, Serializable, Cloneable, ManagedParameters
Stores information for a click template
Author:
Jamie Macaulay
See Also:
  • Field Details

    • sR

      public float sR
    • waveform

      public double[] waveform
    • name

      public String name
  • Constructor Details

    • MatchTemplate

      public MatchTemplate(String name, double[] waveform, float sR)
  • Method Details

    • clone

      public MatchTemplate clone()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.
    • getWaveData

      public double[][] getWaveData()
      Description copied from interface: RawDataHolder
      Get arrays of raw audio data, one per channel. Assume that the array matches getChannelMap() !
      Specified by:
      getWaveData in interface RawDataHolder
      Returns:
      arrays of raw data by channel
    • getDataTransforms

      public RawDataTransforms getDataTransforms()
      Description copied from interface: RawDataHolder
      Get the raw data transforms class. This handles standard data transforms that are often used in raw data units, e.g. calculating the spectrum, filtering waveforms, getting data as an int16 (short) array, etc.
      Specified by:
      getDataTransforms in interface RawDataHolder
      Returns:
      the data transforms object.