public class NeighborPixelDCF extends Object implements stream.StatefulProcessor
Created by jebuss on 10.08.16.
| Modifier and Type | Field and Description |
|---|---|
String |
key |
String |
neighborPixDCFKey |
String |
noiseKey |
String |
pixelSetKey |
int |
skipFirst |
int |
skipLast |
| Constructor and Description |
|---|
NeighborPixelDCF() |
| Modifier and Type | Method and Description |
|---|---|
double |
DCF(int t,
double[] a,
double[] b,
double meanA,
double meanB,
double UDCFNorm)
Calculate the descrete correlation function for a pair of values
|
void |
finish() |
void |
init(stream.ProcessContext context) |
stream.Data |
process(stream.Data input) |
void |
resetState() |
double |
UDCF(double a,
double b,
double meanA,
double meanB,
double UDCFNorm)
Calculate the unbinned descrete correlation function for a pair of values
|
double |
UDCFNorm(double stdDevA,
double stdDevB,
double noiseA,
double noiseB)
Calculate the norm for the unbinned descrete correlation function
|
@Parameter(required=true,
description="raw data array")
public String key
@Parameter(required=false,
description="pixel array containing a noise estimation for each pixel")
public String noiseKey
@Parameter(description="Key of the pixel sample that should be used, if no pixelset is given, the whole camera is used",
defaultValue="")
public String pixelSetKey
@Parameter(description="Number of slices to be skipped at the time lines beginning",
defaultValue="30")
public int skipFirst
@Parameter(description="Number of slices to be skipped at the time lines end",
defaultValue="50")
public int skipLast
@Parameter(required=false,
description="Outputkey for the mean correlation of neighbouring pixels")
public String neighborPixDCFKey
public stream.Data process(stream.Data input)
process in interface stream.Processorpublic double DCF(int t,
double[] a,
double[] b,
double meanA,
double meanB,
double UDCFNorm)
t - shift of the arraysa - first arrayb - second arraymeanA - mean of ameanB - mean of bUDCFNorm - public double UDCF(double a,
double b,
double meanA,
double meanB,
double UDCFNorm)
a - first valueb - second valuemeanA - mean of the a's originmeanB - mean of the b's originUDCFNorm - public double UDCFNorm(double stdDevA,
double stdDevB,
double noiseA,
double noiseB)
stdDevA - standard deviation of astdDevB - standard deviation of bnoiseA - noise of anoiseB - noise of bpublic 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.