|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectasu.seismo.signals.oned.doubleSignal1d
asu.seismo.signals.oned.doubleSignal1dpadp2
asu.seismo.signals.oned.doubleSignal1dfft
public class doubleSignal1dfft
Class to represent a signal and its Fourier transform
Field Summary | |
---|---|
protected boolean |
fft_valid
Indicate that the fft data is valid |
protected double[] |
fftdata
fft data for the signal. |
protected FFT1d |
myFFT
The FFT - Routine. |
protected boolean |
phys_valid
Indicates that the physical data is valid |
Fields inherited from class asu.seismo.signals.oned.doubleSignal1dpadp2 |
---|
pLength, tail |
Fields inherited from class asu.seismo.signals.oned.doubleSignal1d |
---|
data, length |
Constructor Summary | |
---|---|
doubleSignal1dfft()
Construct empty signal |
|
doubleSignal1dfft(double[] d)
Construct signal from array |
|
doubleSignal1dfft(doubleSignal1d sig)
Construct signal from non padded signal |
|
doubleSignal1dfft(doubleSignal1dfft sig)
Copy given signal with fft |
|
doubleSignal1dfft(doubleSignal1dpadp2 sig)
Construct signal from padded signal |
|
doubleSignal1dfft(int l)
Construct signal of length l |
Method Summary | |
---|---|
void |
assign(arraySelector1d st,
doubleSignal1d sig)
Assign the given signal to a part of this signal. |
void |
assign(arraySelector1d st,
doubleSignal1d sig,
arraySelector1d s)
Assign part of a signal to a part of this signal. |
void |
assign(arraySelector1d st,
doubleSignal1dfft sig)
Assign the given signal to a part of this signal. |
void |
assign(arraySelector1d st,
doubleSignal1dfft sig,
arraySelector1d s)
Assign the given signal to a part of this signal. |
void |
changeFFT()
Call this to indicate that the FFT data has been changed. |
void |
changePhys()
Call this to indicate that the physical data has has been changed. |
void |
clear()
clear signal ie fill signal with zeros |
static doubleSignal1dfft |
conv(doubleSignal1dfft s1,
doubleSignal1dfft s2)
Perform convolution of s1 and s2 in 'full' mode. |
static doubleSignal1dfft |
conv(doubleSignal1dfft s1,
doubleSignal1dfft s2,
char mode)
|
static doubleSignal1dfft |
conv(doubleSignal1dfft s1,
doubleSignal1dfft s2,
char mode,
FFT1d fft)
Perform convolution in a given mode. |
void |
convHere(doubleSignal1dfft s1,
doubleSignal1dfft s2)
Replace the signal by the convolution of s1 and s2. |
void |
diffHere(doubleSignal1dfft s1,
doubleSignal1dfft s2)
Compute the difference between this signal and the given one. this=s2-s1 |
double[] |
getDataArray()
Returns the physical data array |
double[] |
getFFTArray()
Get FFT data array |
FFT1d |
getmyFFT()
|
static FFT1d |
getStdFFT(int n)
|
void |
invalidateFFT()
Invalidate FFT data. |
void |
invalidatePhys()
Invalidate physical data. |
boolean |
isFFTValid()
Determine if the FFT data is valid |
boolean |
isPhysValid()
Determine if the physical data is valid |
void |
mult(double c)
New implementation of the multiplication operator. |
double |
norm2()
New implementation of the 2-norm. |
void |
performFFT()
Perform the fft of the data set. |
void |
performIFFT()
Perform the ifft of the data set. |
void |
setFFT(FFT1d fft)
Set an fft routine. |
void |
setStdFFT()
Use std FFT |
void |
setVerbose(int v)
|
void |
validateFFT()
Validate FFT data |
void |
validatePhys()
Validate physical data. |
static arraySelector1d |
validmap(int l1,
int l2)
return a map of all valid elements of a convolution of two signals with l1 and l2 elements |
void |
zeros()
Assign zeros to the given signal |
void |
zeros(arraySelector1d s)
Assign zeros to a part of this signal. |
Methods inherited from class asu.seismo.signals.oned.doubleSignal1dpadp2 |
---|
allocateMemory, getpLength, getTail, pad |
Methods inherited from class asu.seismo.signals.oned.doubleSignal1d |
---|
add, add, add, assign, assign, assign, assign, cutNeg, diff, diffHere, dp, getAbsMax, getAsString, getLength, getMaxValue, getMinValue, loadASCII, mult, normalize2, normalizeMax, normalizeS, normTK2, normTK2, normTV, normTV, ones, printAsColumn, printAsLine, rand, removeDC, reverse, reverseThis, saveASCII, setLength, subSignal, sum, sum, vec, zeros |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double[] fftdata
protected boolean fft_valid
protected boolean phys_valid
protected FFT1d myFFT
Constructor Detail |
---|
public doubleSignal1dfft()
public doubleSignal1dfft(int l)
public doubleSignal1dfft(double[] d) throws invalid_data_exception
invalid_data_exception
public doubleSignal1dfft(doubleSignal1d sig) throws invalid_data_exception
invalid_data_exception
public doubleSignal1dfft(doubleSignal1dpadp2 sig) throws invalid_data_exception
invalid_data_exception
public doubleSignal1dfft(doubleSignal1dfft sig) throws invalid_data_exception
invalid_data_exception
Method Detail |
---|
public void setVerbose(int v)
public double[] getDataArray() throws invalid_data_exception
getDataArray
in class doubleSignal1d
invalid_data_exception
public double[] getFFTArray() throws invalid_data_exception
invalid_data_exception
public void performIFFT()
public void performFFT()
public void setFFT(FFT1d fft)
public FFT1d getmyFFT()
public static FFT1d getStdFFT(int n)
public void clear()
doubleSignal1d
clear
in class doubleSignal1d
public void setStdFFT()
public void validatePhys()
validatePhys
in class doubleSignal1d
public void validateFFT()
public void invalidatePhys()
public void invalidateFFT()
public void changeFFT()
public void changePhys()
changePhys
in class doubleSignal1d
public boolean isPhysValid()
public boolean isFFTValid()
public void mult(double c) throws invalid_data_exception
mult
in class doubleSignal1d
invalid_data_exception
public double norm2() throws invalid_data_exception
norm2
in class doubleSignal1d
invalid_data_exception
public static arraySelector1d validmap(int l1, int l2)
public static doubleSignal1dfft conv(doubleSignal1dfft s1, doubleSignal1dfft s2) throws invalid_data_exception, size_mismatch_exception
invalid_data_exception
size_mismatch_exception
public static doubleSignal1dfft conv(doubleSignal1dfft s1, doubleSignal1dfft s2, char mode) throws invalid_data_exception, size_mismatch_exception
invalid_data_exception
size_mismatch_exception
public static doubleSignal1dfft conv(doubleSignal1dfft s1, doubleSignal1dfft s2, char mode, FFT1d fft) throws invalid_data_exception, size_mismatch_exception
invalid_data_exception
size_mismatch_exception
public void convHere(doubleSignal1dfft s1, doubleSignal1dfft s2) throws invalid_data_exception, size_mismatch_exception
invalid_data_exception
size_mismatch_exception
public void diffHere(doubleSignal1dfft s1, doubleSignal1dfft s2) throws invalid_data_exception, size_mismatch_exception
invalid_data_exception
size_mismatch_exception
public void assign(arraySelector1d st, doubleSignal1dfft sig) throws invalid_data_exception
invalid_data_exception
public void assign(arraySelector1d st, doubleSignal1d sig) throws invalid_data_exception
assign
in class doubleSignal1d
invalid_data_exception
public void assign(arraySelector1d st, doubleSignal1d sig, arraySelector1d s) throws invalid_data_exception, size_mismatch_exception
assign
in class doubleSignal1d
invalid_data_exception
size_mismatch_exception
public void assign(arraySelector1d st, doubleSignal1dfft sig, arraySelector1d s) throws invalid_data_exception, size_mismatch_exception
invalid_data_exception
size_mismatch_exception
public void zeros() throws invalid_data_exception
zeros
in class doubleSignal1d
invalid_data_exception
public void zeros(arraySelector1d s) throws invalid_data_exception, size_mismatch_exception
zeros
in class doubleSignal1d
invalid_data_exception
size_mismatch_exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |