autocorrelation of a square wave (repro Wikipedia example)

前端 未结 0 941
无人及你
无人及你 2021-01-16 07:15

I am trying to reproduce the following figure from the autocorrelation Wikipedia page:

My R code is:

f = rep(c(0,1,0), each=100)
acf(f)
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题