Displaying 1 result from an estimated 1 matches for "wds3".
Did you mean:
wds
2010 Mar 09
0
wavethresh: length must be power of two
...solution is to analyse a window with a length power of two. For this example:
> data2=data[1:(2^trunc(log(365,2)))]
> wdS2 <- wd(data2, type="station")
or pad with zeros:
> data3=data
> length(data3)<-2^ceiling(log(length(data),2))
> data3[is.na(data3)]<-0
> wdS3<-wd(data3,type='station')
Is there any other solution?
By the way, does anybody knows why the wavethresh package at CRAN is not being updated?
Thank you very much!
Oscar Perpi??n Lamigueiro
Department of Electrical Engineering
Universidad Polit?cnica de Madrid