DSP.jl icon indicating copy to clipboard operation
DSP.jl copied to clipboard

welch_pgram index out of bounds

Open goldfita opened this issue 8 years ago • 0 comments

The welch estimator isn't quite right when the segment length is greater than the input length. I'm not sure what the correct behavior is, but periodogram specifies zero padding.

> Pkg.installed("DSP")  
v"0.1.1"
> s = randn(10000)
> welch_pgram(s[1:3687],4096,3686)
ERROR: BoundsError

Anything less than or equal to noverlap results in all zeros for power.

goldfita avatar Apr 21 '17 19:04 goldfita