Sha256: 022f42d03695cf078888d89f430361c8c8b19b1867fe42e5d98b1cbaa092eb29
Contents?: true
Size: 455 Bytes
Versions: 7
Compression:
Stored size: 455 Bytes
Contents
Filter_factory = Digiproc::Factories::FilterFactory plt = Digiproc::QuickPlot bpfilter = Filter_factory.filter_for(type: "bandpass", wo: Math::PI / 3, bw: Math::PI / 10, transition_width: 0.1, stopband_attenuation: 80) freq_db = bpfilter.fft.dB # Get x values with the linspace function (start, stop, number_of_points) plt.plot(x: Digiproc::Functions.linspace(0,1,freq_db.length) ,y: freq_db, y_label: "dB", dark: true, path: './examples/factories/')
Version data entries
7 entries across 7 versions & 1 rubygems