All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.maths.wavelet.Signal

java.lang.Object
   |
   +----JSci.maths.wavelet.MultiscaleFunction
           |
           +----JSci.maths.wavelet.splines.Spline
                   |
                   +----JSci.maths.wavelet.splines.LinearSpline
                           |
                           +----JSci.maths.wavelet.Signal

public class Signal
extends LinearSpline
implements NumericalConstants, Cloneable
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.


Constructor Index

 o Signal()
 o Signal(double[])
 o Signal(Filter)
 o Signal(Filter, double[])
 o Signal(Filter, double[], double[])

Method Index

 o absFFT()
Return the absolute value of the FFT
 o absFFT(double[])
 o clone()
Return a copy of this object
 o denoiseByFFT(int)
Simplistic FFT denoising.
 o denoiseShortPeaks(double, int)
This denoising method will identify "short peaks" in the signal and take them away.
 o entropy()
Return the entropy of the signal
 o equals(Signal)
Check if another object is equal to this Signal object
 o fft()
 o fft(Complex[])
 o fft(double[])
This is merely a copy of the FFT method found in the class FourierMath with some changes...
 o fftInverse(Complex[])
Also noted iFFT in other packages.
 o filter(double[])
Apply the given array as a convolution Filter and return a new Signal.
 o fwt(int)
Fast Wavelet Transform
 o fwtPacket(int, NMapping)
The Fast Wavelet Transform with Wavelet packets
 o getValues()
Get the sampled values of the sample as an array.
 o highpassProject()
Project the signal according the the highpass Filter
 o lowpassProject()
Project the data according to the lowpass Filter
 o medianFilter(int)
Apply the median Filter of a window of size 2*n+1.
 o norm()
Compute the L2 norm of the signal
 o removeParameter()
Throws away the parameter of the Filter
 o resample(int)
Resample the signal using linear interpolation
 o setData(double[])
Set the data for the signal
 o setDimensionFromBeginning(int)
Will make the signal a given dimension
 o setDimensionFromEnd(int)
Will make the signal a given dimension
 o setFilter(Filter)
set the signal associated Filter
 o setLengthFromBeginning(int)
Set the Signal to the specified length scraping or padding the end if necessary
 o setLengthFromEnd(int)
Set the Signal to the specified length scraping or padding the beginning if necessary
 o setParameter(Double[])
Set the parameter of the Filter (if it applies).
 o setParameter(double[])
Set the parameter of the Filter (if it applies).

Constructors

 o Signal
 public Signal()
 o Signal
 public Signal(double v[])
 o Signal
 public Signal(Filter f,
               double v[],
               double p[])
 o Signal
 public Signal(Filter f)
 o Signal
 public Signal(Filter f,
               double v[])

Methods

 o clone
 public Object clone()
Return a copy of this object

Overrides:
clone in class LinearSpline
 o getValues
 public double[] getValues()
Get the sampled values of the sample as an array.

 o setFilter
 public void setFilter(Filter f)
set the signal associated Filter

 o setParameter
 public void setParameter(double p[])
Set the parameter of the Filter (if it applies).

 o setParameter
 public void setParameter(Double p[])
Set the parameter of the Filter (if it applies).

 o removeParameter
 public void removeParameter()
Throws away the parameter of the Filter

 o setLengthFromEnd
 public void setLengthFromEnd(int longueur)
Set the Signal to the specified length scraping or padding the beginning if necessary

 o resample
 public void resample(int newl)
Resample the signal using linear interpolation

 o setLengthFromBeginning
 public void setLengthFromBeginning(int longueur)
Set the Signal to the specified length scraping or padding the end if necessary

 o setData
 public void setData(double v[])
Set the data for the signal

 o fwt
 public FWTCoef fwt(int J)
Fast Wavelet Transform

 o fwtPacket
 public FWTPacketCoef fwtPacket(int J,
                                NMapping cout)
The Fast Wavelet Transform with Wavelet packets

Parameters:
J - number of iterations
cout - cost function
 o lowpassProject
 public double[] lowpassProject()
Project the data according to the lowpass Filter

 o highpassProject
 public double[] highpassProject()
Project the signal according the the highpass Filter

 o norm
 public double norm()
Compute the L2 norm of the signal

 o fft
 public Complex[] fft()
 o fft
 public static Complex[] fft(double data[])
This is merely a copy of the FFT method found in the class FourierMath with some changes... optimized for double[] arrays.

 o fft
 public static Complex[] fft(Complex data[])
 o absFFT
 public double[] absFFT()
Return the absolute value of the FFT

 o absFFT
 public static double[] absFFT(double data[])
 o fftInverse
 public static Complex[] fftInverse(Complex data[])
Also noted iFFT in other packages. This is the inverse to the FFT.

 o equals
 public boolean equals(Signal b)
Check if another object is equal to this Signal object

 o setDimensionFromEnd
 public void setDimensionFromEnd(int dimension)
Will make the signal a given dimension

 o setDimensionFromBeginning
 public void setDimensionFromBeginning(int dimension)
Will make the signal a given dimension

 o denoiseByFFT
 public void denoiseByFFT(int k)
Simplistic FFT denoising.

Parameters:
k - frequency to denoised
 o entropy
 public double entropy()
Return the entropy of the signal

 o filter
 public Signal filter(double f[])
Apply the given array as a convolution Filter and return a new Signal. As one often want to compare the result to the original signal, this method is "safe", that is, it won't change the current object.

Parameters:
f - an array containing the coefficients of the convolution Filter
 o medianFilter
 public Signal medianFilter(int n)
Apply the median Filter of a window of size 2*n+1. exception IllegalArgumentException if the parameter n is negative

 o denoiseShortPeaks
 public Signal denoiseShortPeaks(double p,
                                 int n)
This denoising method will identify "short peaks" in the signal and take them away. Short peaks are defined from a comparison with the median filtered signal. Only "significative" peaks are detected (see parameter p). This method won't denoise near the boundaries. "Short" refers here to the time-domain and not the amplitude. param p percentage of the range (max-min) considered as a significative step param n length of the peak in the time domain exception IllegalArgumentException if p is not between 0 and 1 exception IllegalArgumentException if the parameter n is negative


All Packages  Class Hierarchy  This Package  Previous  Next  Index