Sha256: d3770eeb746e154fd59b7dd2a65ced74f3d4b7f92b10ebd62b24d456c8feb13e

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

#require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
#
#describe SPCore::CombFilter do
#  describe '#frequency_response' do
#    before :all do
#      @filters = []
#      [100].each do |frequency|
#        [0.15,0.25,0.5,0.75,0.85].each do |alpha|
#          @filters.push(
#            CombFilter.new(
#              :type => CombFilter::FEED_BACK,
#              :alpha => alpha,
#              :frequency => frequency
#            )
#          )
#        end
#      end
#    end
#    
#    it 'should produce the number of samples given by sample_count' do
#      [5,20,50].each do |sample_count|
#        @filters.each do |filter|
#          samples = filter.frequency_response(6000, sample_count)
#          samples.count.should eq(sample_count)
#        end
#      end
#    end
#    
#    it 'should...' do
#      outputs = {}
#      @filters.each do |filter|
#        outputs["comb filter: alpha = #{filter.alpha}, freq = #{filter.frequency}"] = filter.frequency_response 6000, 512
#      end
#      Plotter.plot_1d outputs
#    end
#  end
#end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spcore-0.2.1 spec/generation/comb_filter_spec.rb