public class FindMaxSlope extends Object implements stream.Processor
| Modifier and Type | Field and Description |
|---|---|
String |
arrivalTimeKey |
String |
derivationKey |
String |
key |
int |
maxSearchSlice |
int |
numFitSlices |
String |
outputKey |
String |
outputKeyVisualization |
| Constructor and Description |
|---|
FindMaxSlope() |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateSlope(int slopePos,
int numSlices,
double[] data) |
int |
findMaxSlopePos(int arrTime,
int maxSearchSlice,
double[] slopesArray) |
stream.Data |
process(stream.Data item) |
@Parameter(required=true,
description="key of data array")
public String key
@Parameter(required=true,
description="key of arrival time array")
public String arrivalTimeKey
@Parameter(required=true,
description="key of arrival time array")
public String derivationKey
@Parameter(required=true,
description="key of output array")
public String outputKeyVisualization
@Parameter(required=true,
description="key of output array")
public String outputKey
@Parameter(description="size of the window to search for the max amplitude",
defaultValue="20")
public int maxSearchSlice
@Parameter(description="number of slices to fit the slope",
defaultValue="1")
public int numFitSlices
public stream.Data process(stream.Data item)
process in interface stream.Processorpublic int findMaxSlopePos(int arrTime,
int maxSearchSlice,
double[] slopesArray)
public double calculateSlope(int slopePos,
int numSlices,
double[] data)
Copyright © 2019. All rights reserved.