Sha256: 9cd67d5148c92305929a02046187724f81a13e708aea9085c9e783fd32dee204
Contents?: true
Size: 544 Bytes
Versions: 7
Compression:
Stored size: 544 Bytes
Contents
## # A basic ReactangularWindow used when making a digital filter class Digiproc::RectangularWindow < Digiproc::WindowStrategy # Initialize with a size: Integer # Number of datapoints def initialize(size: ) super(size: size) calculate end # Find the size given an input frequency in rad/s def find_size(freq) size = 0.9 / freq make_odd(size.ceil) end # Return the transition width based on the @size def transition_width 0.9 / @size end end
Version data entries
7 entries across 7 versions & 1 rubygems