|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.maths.wavelet.MultiscaleFunction JSci.maths.wavelet.splines.Spline JSci.maths.wavelet.splines.LinearSpline JSci.maths.wavelet.Signal
public class Signal
This class use the linear spline as a general model for a signal. While this is a reasonnable design choice, this can certainly be overwritten if necessary. Basic operations on signal are supported.
Field Summary | |
---|---|
(package private) static double |
normalisation
|
Fields inherited from class JSci.maths.wavelet.splines.LinearSpline |
---|
filtretype |
Fields inherited from interface JSci.maths.NumericalConstants |
---|
GAMMA, GOLDEN_RATIO, LOG10, SQRT2, SQRT2PI, TWO_PI |
Constructor Summary | |
---|---|
Signal()
|
|
Signal(double[] v)
|
|
Signal(Filter f)
|
|
Signal(Filter f,
double[] v)
|
|
Signal(Filter f,
double[] v,
double[] p)
|
Method Summary | |
---|---|
double[] |
absFFT()
Return the absolute value of the FFT |
static double[] |
absFFT(double[] data)
|
java.lang.Object |
clone()
Return a copy of this object |
void |
denoiseByFFT(int k)
Simplistic FFT denoising. |
Signal |
denoiseShortPeaks(double p,
int n)
This denoising method will identify "short peaks" in the signal and take them away. |
double |
entropy()
Return the entropy of the signal |
boolean |
equals(Signal b)
Check if another object is equal to this Signal object |
Complex[] |
fft()
|
static Complex[] |
fft(Complex[] data)
Performs the Fourier transform. |
static Complex[] |
fft(double[] data)
Performs the Fourier transform. |
static Complex[] |
fftInverse(Complex[] data)
Also noted iFFT in other packages. |
Signal |
filter(double[] f)
Apply the given array as a convolution Filter and return a new Signal. |
FWTCoef |
fwt(int J)
Fast Wavelet Transform |
FWTPacketCoef |
fwtPacket(int J,
MappingND cout)
The Fast Wavelet Transform with Wavelet packets |
double[] |
getValues()
Get the sampled values of the sample as an array. |
double[] |
highpassProject()
Project the signal according the the highpass Filter |
double[] |
lowpassProject()
Project the data according to the lowpass Filter |
Signal |
medianFilter(int n)
Apply the median Filter of a window of size 2*n+1. |
double |
norm()
Compute the L2 norm of the signal |
void |
removeParameters()
Throws away the parameters of the Filter |
void |
resample(int newl)
Resample the signal using linear interpolation |
void |
setData(double[] v)
Set the data for the signal |
void |
setDimensionFromBeginning(int dimension)
Will make the signal a given dimension |
void |
setDimensionFromEnd(int dimension)
Will make the signal a given dimension |
void |
setFilter(Filter f)
set the signal associated Filter |
void |
setLengthFromBeginning(int longueur)
Set the Signal to the specified length scraping or padding the end if necessary |
void |
setLengthFromEnd(int longueur)
Set the Signal to the specified length scraping or padding the beginning if necessary |
void |
setParameters(double[] p)
Set the parameter of the Filter (if it applies). |
void |
setParameters(java.lang.Double[] p)
Set the parameters of the Filter (if it applies). |
Methods inherited from class JSci.maths.wavelet.splines.LinearSpline |
---|
derive, derive, dimension, dimension, equals, evaluate, getFilterType, getValue, highpass, highpass, interpolate, lowpass, lowpass, previousDimension, setValue, setValues, toString |
Methods inherited from class JSci.maths.wavelet.MultiscaleFunction |
---|
mass, mass |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final double normalisation
Constructor Detail |
---|
public Signal()
public Signal(double[] v)
public Signal(Filter f, double[] v, double[] p)
public Signal(Filter f)
public Signal(Filter f, double[] v)
Method Detail |
---|
public java.lang.Object clone()
clone
in class LinearSpline
public double[] getValues()
public void setFilter(Filter f)
public void setParameters(double[] p)
public void setParameters(java.lang.Double[] p)
public void removeParameters()
public void setLengthFromEnd(int longueur)
public void resample(int newl)
public void setLengthFromBeginning(int longueur)
public void setData(double[] v)
public FWTCoef fwt(int J)
public FWTPacketCoef fwtPacket(int J, MappingND cout)
J
- number of iterationscout
- cost functionpublic double[] lowpassProject()
public double[] highpassProject()
public double norm()
public Complex[] fft()
public static Complex[] fft(double[] data)
FourierMath.transform
.
public static Complex[] fft(Complex[] data)
FourierMath.transform
.
public double[] absFFT()
public static double[] absFFT(double[] data)
public static Complex[] fftInverse(Complex[] data)
public boolean equals(Signal b)
public void setDimensionFromEnd(int dimension)
public void setDimensionFromBeginning(int dimension)
public void denoiseByFFT(int k)
k
- frequency to denoisedpublic double entropy()
public Signal filter(double[] f)
f
- an array containing the coefficients
of the convolution Filterpublic Signal medianFilter(int n)
public Signal denoiseShortPeaks(double p, int n)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |