Class DetectionGrouper

java.lang.Object
group3dlocaliser.grouper.DetectionGrouper

public class DetectionGrouper extends Object
Receives detections, which may come from multiple channel groups, which in the case of the click detector means they may not be in order (or for any other detector in fact) and may have come out of multiple threads, so can get dead messy.
Author:
dg50
  • Constructor Details

  • Method Details

    • newData

      public void newData(PamDataUnit pamDataUnit)
    • masterClockUpdate

      public void masterClockUpdate(long timeMilliseconds, long sampleNumber)
    • closeMotherGroup

      public void closeMotherGroup()
      Close the existing group and make a new one.
    • canSelectData

      public boolean canSelectData(PamDataUnit dataUnit)
    • clear

      public void clear()
    • getGroupedSourceParameters

      public GroupedSourceParameters getGroupedSourceParameters()
      Returns:
      the groupedSourceParameters
    • setGroupedSourceParameters

      public void setGroupedSourceParameters(GroupedSourceParameters groupedSourceParameters, double sampleRate)
      Parameters:
      groupedSourceParameters - the groupedSourceParameters to set
    • calculateGroupDelays

      public void calculateGroupDelays(double sampleRate)
    • getDetectionGrouperParams

      public DetectionGrouperParams getDetectionGrouperParams()
      Returns:
      the detectionGrouperParams
    • setDetectionGrouperParams

      public void setDetectionGrouperParams(DetectionGrouperParams detectionGrouperParams)
      Parameters:
      detectionGrouperParams - the detectionGrouperParams to set
    • getDataSelector

      public DataSelector getDataSelector()
      Returns:
      the dataSelector
    • setDataSelector

      public void setDataSelector(DataSelector dataSelector)
      Parameters:
      dataSelector - the dataSelector to set