public class Cmplx
extends java.lang.Object
Constructor and Description |
---|
Cmplx(double re,
double im) |
Modifier and Type | Method and Description |
---|---|
static Cmplx |
add(Cmplx a,
Cmplx b) |
static Cmplx |
add(Cmplx a,
double b) |
static Cmplx |
add(double a,
Cmplx b) |
Cmplx |
conjg() |
static float[] |
convolve(float[] fdata,
float[] gdata,
float delta) |
static float[] |
correlate(float[] fdata,
float[] gdata)
Computes the correlation of fdata with gdata.
|
static Cmplx |
div(Cmplx a,
Cmplx b) |
static Cmplx |
div(Cmplx a,
double b) |
static Cmplx |
div(double a,
Cmplx b) |
static Cmplx |
exp(Cmplx arg) |
static Cmplx[] |
fft(float[] fdata)
Forward Fast Fourier Transform
|
static float[] |
fftInverse(Cmplx[] cdata,
int nPoints)
Inverse Forward Fast Fourier Transform
|
static double[] |
four1(double[] data,
int isign)
Fast Fourier Transform (adapted from Numerical Recipies in C) isign = 1
replace data by FFT = -1 replace data by inverse FFT data pseudo-complex
array of length nn input as real pairs nn integer power of 2
|
static float[] |
four1(float[] data,
int isign) |
static float[] |
four1Forward(float[] data) |
static float[] |
four1Inverse(float[] data) |
double |
imag() |
boolean |
isNaN() |
double |
mag() |
static Cmplx |
mul(Cmplx a,
Cmplx b) |
static Cmplx |
mul(Cmplx a,
double b) |
static Cmplx |
mul(double a,
Cmplx b) |
double |
phs() |
double |
real() |
Cmplx |
sqrt() |
static Cmplx |
sub(Cmplx a,
Cmplx b) |
static Cmplx |
sub(Cmplx a,
double b) |
static Cmplx |
sub(double a,
Cmplx b) |
java.lang.String |
toString() |
Cmplx |
unitVector()
creates a unit mag complex number.
|
Cmplx |
zeroOrUnitVector() |
public final double real()
public final double imag()
public final double mag()
public final Cmplx unitVector()
public final Cmplx zeroOrUnitVector()
public final double phs()
public final Cmplx conjg()
public final Cmplx sqrt()
public boolean isNaN()
public static final Cmplx[] fft(float[] fdata)
public static final float[] fftInverse(Cmplx[] cdata, int nPoints)
public static final float[] convolve(float[] fdata, float[] gdata, float delta)
public static final float[] correlate(float[] fdata, float[] gdata)
section 13-2
public static float[] four1Forward(float[] data)
public static float[] four1Inverse(float[] data)
public static float[] four1(float[] data, int isign)
public static final double[] four1(double[] data, int isign)
public java.lang.String toString()
toString
in class java.lang.Object