public class PatchJumpRemoval extends Object implements stream.Processor
Modifier and Type | Field and Description |
---|---|
String |
dataKey |
double |
jumpLimit |
String |
outputJumpsKey |
String |
outputKey |
String |
prevEventsKey |
String |
startCellKey |
String |
unixTimeKey |
Constructor and Description |
---|
PatchJumpRemoval() |
Modifier and Type | Method and Description |
---|---|
double |
checkForJump(int patch,
int pos,
double[] derivation,
boolean isStartCell)
Checks if there is a jump from the slices pos to pos+1
|
double |
checkForRingingFFT(int patch,
int pos,
double[] dataArray,
double[] derivation,
double jumpHeight,
JumpInfos jumpInfos)
First check if there is a significant ringing in the dataArray, by performing a FFT on the dataArray,
and checking the amplitude of the frequency bins between 0.18 GHz and 0.22 GHz.
|
boolean |
checkForSignalFlank(int patch,
int pos,
double[] derivation,
boolean isStartCell,
double jumpHeight)
Checks if the detected jumps comes from a photon signal flank
|
boolean |
checkForTimeDependency(int patch,
double deltaT,
double jumpHeight,
JumpInfos jumpInfos)
Checks if the jumpHeight is in the range of the predicted jumpHeight, depending on deltaT
|
double[] |
correctJump(int patch,
int pos,
boolean isStartCell,
double[] result,
double jumpHeight)
Correct the data array for a jump.
|
void |
createPatchAverage(int patch,
double[] patchAverage,
double[] patchDerivationAverage,
double[] result)
Calculates the average of the result data array for a given patch.
|
double[] |
HandleSpike(int patch,
int pos,
double[] result,
JumpInfos jumpInfo)
Checks if there are spikes directly in front of the jump and/or after the jump.
|
stream.Data |
process(stream.Data item) |
@Parameter(required=true) public String dataKey
@Parameter(required=true) public String outputKey
@Parameter(required=false, description="Useful for jump studies") public String outputJumpsKey
@Parameter(required=true) public String prevEventsKey
@Parameter(required=true) public String startCellKey
@Parameter(required=false, description="The key containing the UnixTimeUTC") public String unixTimeKey
@Parameter public double jumpLimit
public stream.Data process(stream.Data item)
process
in interface stream.Processor
public double[] HandleSpike(int patch, int pos, double[] result, JumpInfos jumpInfo)
patch
- pos
- public void createPatchAverage(int patch, double[] patchAverage, double[] patchDerivationAverage, double[] result)
patch
- patchAverage
- patchDerivationAverage
- public double checkForJump(int patch, int pos, double[] derivation, boolean isStartCell)
patch
- pos
- derivation
- isStartCell
- public boolean checkForTimeDependency(int patch, double deltaT, double jumpHeight, JumpInfos jumpInfos)
patch
- deltaT
- jumpHeight
- jumpInfos
- public boolean checkForSignalFlank(int patch, int pos, double[] derivation, boolean isStartCell, double jumpHeight)
patch
- pos
- derivation
- isStartCell
- public double checkForRingingFFT(int patch, int pos, double[] dataArray, double[] derivation, double jumpHeight, JumpInfos jumpInfos)
patch
- pos
- dataArray
- derivation
- public double[] correctJump(int patch, int pos, boolean isStartCell, double[] result, double jumpHeight)
patch
- pos
- isStartCell
- result
- jumpHeight
- Copyright © 2019. All rights reserved.