Package group3dlocaliser.grouper
Class DetectionGrouper
java.lang.Object
group3dlocaliser.grouper.DetectionGrouper
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
calculateGroupDelays
(double sampleRate) boolean
canSelectData
(PamDataUnit dataUnit) void
clear()
void
Close the existing group and make a new one.void
masterClockUpdate
(long timeMilliseconds, long sampleNumber) void
newData
(PamDataUnit pamDataUnit) void
setDataSelector
(DataSelector dataSelector) void
setDetectionGrouperParams
(DetectionGrouperParams detectionGrouperParams) void
setGroupedSourceParameters
(GroupedSourceParameters groupedSourceParameters, double sampleRate)
-
Constructor Details
-
DetectionGrouper
-
-
Method Details
-
newData
-
masterClockUpdate
public void masterClockUpdate(long timeMilliseconds, long sampleNumber) -
closeMotherGroup
public void closeMotherGroup()Close the existing group and make a new one. -
canSelectData
-
clear
public void clear() -
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
- Returns:
- the detectionGrouperParams
-
setDetectionGrouperParams
- Parameters:
detectionGrouperParams
- the detectionGrouperParams to set
-
getDataSelector
- Returns:
- the dataSelector
-
setDataSelector
- Parameters:
dataSelector
- the dataSelector to set
-