public class IterDecon
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected float |
gwidthFactor |
protected int |
maxBumps |
protected float |
tol |
protected boolean |
useAbsVal |
static boolean |
useNativeFFT |
static boolean |
useOregonDSPFFT |
Constructor and Description |
---|
IterDecon(int maxBumps,
boolean useAbsVal,
float tol,
float gwidthFactor) |
Modifier and Type | Method and Description |
---|---|
static float[] |
buildDecon(float[] amps,
int[] shifts,
int n,
float gwidthFactor,
float dt) |
static float[] |
buildSpikes(float[] amps,
int[] shifts,
int n) |
static float[] |
correlateNorm(float[] fdata,
float[] gdata)
computes the correlation of f and g normalized by the zero-lag
autocorrelation of g.
|
static float[] |
forwardFFT(float[] x) |
static float[] |
gaussianFilter(float[] x,
float gwidthFactor,
float dt)
convolve a function with a unit-area Gaussian filter.
|
static float[] |
gaussianFilter(float[] x,
float gwidthFactor,
float dt,
float[] gaussVals) |
static float[] |
gaussianFilterNoFFT(float[] forward,
float gwidthFactor,
float dt,
float[] gaussVals) |
static int |
getAbsMaxIndex(float[] data) |
static int |
getMaxIndex(float[] data) |
static int |
getMinIndex(float[] data) |
static float[] |
getResidual(float[] x,
float[] y)
returns the residual, ie x-y
|
static float[] |
inverseFFT(float[] x) |
static float[] |
lengthenFFT(float[] tmp) |
static float[] |
makePowerTwo(float[] data) |
static int |
nextPowerTwo(int n) |
static float[] |
phaseShift(float[] x,
float shift,
float dt) |
static float |
power(float[] data) |
IterDeconResult |
process(float[] numerator,
float[] denominator,
float dt) |
static float[] |
shortenFFT(float[] tmp) |
protected int maxBumps
protected boolean useAbsVal
protected float tol
protected float gwidthFactor
public static boolean useNativeFFT
public static boolean useOregonDSPFFT
public IterDecon(int maxBumps, boolean useAbsVal, float tol, float gwidthFactor)
public IterDeconResult process(float[] numerator, float[] denominator, float dt) throws ZeroPowerException
ZeroPowerException
public static float[] correlateNorm(float[] fdata, float[] gdata)
public static float[] buildSpikes(float[] amps, int[] shifts, int n)
public static float[] buildDecon(float[] amps, int[] shifts, int n, float gwidthFactor, float dt)
public static float[] getResidual(float[] x, float[] y)
public static int getAbsMaxIndex(float[] data)
public static final int getMinIndex(float[] data)
public static final int getMaxIndex(float[] data)
public static final float power(float[] data)
public static float[] gaussianFilter(float[] x, float gwidthFactor, float dt)
public static float[] gaussianFilter(float[] x, float gwidthFactor, float dt, float[] gaussVals)
public static float[] gaussianFilterNoFFT(float[] forward, float gwidthFactor, float dt, float[] gaussVals)
public static float[] shortenFFT(float[] tmp)
public static float[] lengthenFFT(float[] tmp)
public static float[] phaseShift(float[] x, float shift, float dt)
public static float[] forwardFFT(float[] x)
public static float[] inverseFFT(float[] x)
public static float[] makePowerTwo(float[] data)
public static int nextPowerTwo(int n)