public class EmulateDiscriminator extends Object implements stream.Processor
| Modifier and Type | Field and Description |
|---|---|
String |
key |
int |
minTimeOverThreshold |
String |
primitivesKey |
int |
skipFirst |
int |
skipLast |
int |
threshold |
String |
thresholdKey |
String |
triggerSliceKey |
Boolean |
visualize |
| Constructor and Description |
|---|
EmulateDiscriminator() |
| Modifier and Type | Method and Description |
|---|---|
stream.Data |
process(stream.Data item) |
void |
putAsDataArray(stream.Data item,
int n_patches,
boolean[] triggerPrimitives,
int[] patchTriggerSlice)
Convert triggerPrimitive and triggerSlice to arrays of length 1440 in order to visualize this in the viewer.
|
@Parameter(required=true) public String key
@Parameter(required=false,
description="boolean array [number of patches] flagging if patch triggered ")
public String primitivesKey
@Parameter(required=false,
description="int array [number of patches] containing each the first slice above threshold ")
public String triggerSliceKey
@Parameter(required=false,
description="Converts the patch array into a 1440*ROI array inorder to visualize the patche time series in the viewer")
public Boolean visualize
@Parameter(required=false,
description="threshold of the discriminator in DAC units")
public int threshold
@Parameter(required=false,
description="key in dataitem with threshold of the discriminator in DAC units. !!!!Overwrites threshold")
public String thresholdKey
@Parameter(required=false,
description="minimum time the signal has to stay above the threhold")
public int minTimeOverThreshold
@Parameter(required=false,
description="number of slices to ignore at the beginning of the time series")
public int skipFirst
@Parameter(required=false,
description="number of slices to ignore at the end of the time series")
public int skipLast
public stream.Data process(stream.Data item)
process in interface stream.Processorpublic void putAsDataArray(stream.Data item,
int n_patches,
boolean[] triggerPrimitives,
int[] patchTriggerSlice)
item - n_patches - triggerPrimitives - patchTriggerSlice - Copyright © 2019. All rights reserved.