Sha256: 5b9372f302ae2567c7812df77d0a7100db7039ffba2d625c370eac1522a4966e
Contents?: true
Size: 787 Bytes
Versions: 3
Compression:
Stored size: 787 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe 'windows' do it 'should produce a window that looks like...' do size = 512 window_classes = [ #RectangularWindow, #HannWindow, #HammingWindow, #CosineWindow, #LanczosWindow, #TriangularWindow, #BartlettWindow, #GaussianWindow, #BartlettHannWindow, #BlackmanWindow, #NuttallWindow, #BlackmanHarrisWindow, #BlackmanNuttallWindow, #FlatTopWindow, #TukeyWindow ] windows = {} window_classes.each do |window_class| windows[window_class.to_s] = window_class.new(size).data end if windows.any? Plotter.new(:title => "windows").plot_1d(windows, true) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spcore-0.2.1 | spec/windows/window_spec.rb |
spcore-0.2.0 | spec/windows/window_spec.rb |
spcore-0.1.9 | spec/windows/window_spec.rb |