public class Ratescan extends Object implements stream.StatefulProcessor
| Modifier and Type | Class and Description |
|---|---|
class |
Ratescan.RatescanResult
Output container for the ratescan
|
| Modifier and Type | Field and Description |
|---|---|
String |
key |
Integer |
minThreshold |
int |
minTimeOverThreshold |
Integer |
nThresholds |
int |
skipFirst |
int |
skipLast |
Integer |
stepSize |
String |
thresholdsKey |
String |
triggerCountsKey |
String |
triggerPrimitivesKey |
String |
triggerSlicesKey |
| Constructor and Description |
|---|
Ratescan() |
| Modifier and Type | Method and Description |
|---|---|
static int |
countPrimitives(boolean[] primitives)
Count the number of patches with a signal
|
void |
finish() |
void |
init(stream.ProcessContext context) |
stream.Data |
process(stream.Data item) |
Ratescan.RatescanResult |
ratescan(double[][] data,
int minThreshold,
int stepSize) |
Ratescan.RatescanResult |
ratescan(double[][] data,
int minThreshold,
int stepSize,
int nThresholds)
Performs a pseudo ratescan on the given data
|
void |
resetState() |
@Parameter(required=true,
description="double array[n_patches][roi] with time series from summed trigger patches")
public String key
@Parameter(required=false,
description="Int array [number of threshold] how many patches were triggered at given theshold")
public String triggerCountsKey
@Parameter(required=false,
description="int array [number of patches][number of threshold] containing each the first slice above threshold ")
public String triggerSlicesKey
@Parameter(required=false,
description="boolean array [number of patches][number of threshold] containing each if patch was triggered for given threshold ")
public String triggerPrimitivesKey
@Parameter(required=false,
description="int array [number of threshold] containing steps of thresholds ")
public String thresholdsKey
@Parameter(required=false) public Integer minThreshold
@Parameter(required=false) public Integer nThresholds
@Parameter(required=false) public Integer stepSize
@Parameter(required=false,
description="minimum time the signal has to stay above the threshold")
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 Ratescan.RatescanResult ratescan(double[][] data, int minThreshold, int stepSize)
public Ratescan.RatescanResult ratescan(double[][] data, int minThreshold, int stepSize, int nThresholds)
data - minThreshold - stepSize - nThresholds - public static int countPrimitives(boolean[] primitives)
primitives - public void init(stream.ProcessContext context)
throws Exception
init in interface stream.StatefulProcessorExceptionpublic void resetState()
throws Exception
resetState in interface stream.StatefulProcessorExceptionCopyright © 2019. All rights reserved.