Displaying 1 result from an estimated 1 matches for "wds2".
Did you mean:
wds
2010 Mar 09
0
wavethresh: length must be power of two
...r example:
> data=rnorm(365)
> wdS <- wd(data, type="station")
Error en wd(data, type = "station") : Data length is not power of two
A possible 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...