Skip to content
Prev 163953 / 398506 Next

R: R: Morlet wavelet not supportd by wavCWTPeaks

I have compressed and attached the 1st cycle of signal 3570.
I did not realize the difficulties arising from copying the signal data from the email text.
I did not understand how you were reading such data into a vector. When I plotted the signal, the way
you read it, it looked periodic, whereas the original is not.
Since wmTSA functions worked fine with your signal version, I inferred that wavCWTPeaks expects a periodic input series.
Consequently I generated a signal through duplicating the original 1-cycle data. So my new signal contains two consecutive cycles
which are equal. This way wavCWTPeaks worked and fund the extrema.
I realized I modified the original 1-cycle signal myself. I did not alter the breathing rate or the cycle pattern in any way. Since the goal is to find the extrema, all what I expected is to see a set of replicated extrema at corresponding time points.
But wavCWTPeaks is probably smart enough as to dispose of duplicated extrema.
I sent you a detailed description of this experiment from another account.
I am still concerned about wavCWTPeaks working on a duplicated version of the original 1-cycle signal that it cannot process.
If periodicity is not the key reason then I don't get it.
Can you suggest a better procedure to get the 1-cycle extrema without using the trick I resorted to ?

Best regards,

Maura 

-----Messaggio originale-----
Da: stephen sefick [mailto:ssefick at gmail.com]
Inviato: sab 06/12/2008 18.14
A: mauede at alice.it
Cc: R-help
Oggetto: Re: R: Morlet wavelet not supportd by wavCWTPeaks
 
Now, wavelet analysis works with non-stationary signals the package is
an implememtation of wavelet analysis.  The signal that I used was the
one that you provided.  I did copy it out of an email and put it
together into a vector so that I could read it in.  If the original
data is wrong that is probably my fault, but you need to provide data
that can be just read into R without the potential of screwing up the
content-  see dput().  That way you get the best help possible with
the least amount of work on the lists part.  Please send me the real
signal and maybe we can work it out.  If wmtsa is not going to work
then it is not going to work.  Find something else that work or write
your own package.

Stephen
On Sat, Dec 6, 2008 at 4:57 AM, <mauede at alice.it> wrote: