Hi experts Can some one tell me, how can I implement Cosine window in r? Is there a function for that? [[alternative HTML version deleted]]
x<-seq(0,2*pi,by=0.01) y<-cos(x) plot(x,y,type='l') On 25-09-2013 13:22, Babak Bastan wrote:> Hi experts > > Can some one tell me, how can I implement Cosine window in r? Is there a > function for that? > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Dear Babak Bastan, Re:> > Can some one tell me, how can I implement Cosine window in r? Is there a > function for that? >The Hanning window is a cosine windowing function, to multiply sample signals with (before an FFT etc.). e.g. z = y*hanning(256) It resides in the 'signal' package. Hope this helps, Best wishes, Franklin -- Dr. Franklin Bretschneider Dept of Biology Utrecht Unversity Padualaan 8 3584 CH Utrecht The Netherlands f.bretschneider@uu.nl [[alternative HTML version deleted]]