This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
[FEA] Investigate Matlab-IIR Filter Design - Butterworth and more! #559
Labels
feature request
New feature or request
Describe the bug
Running code snippets from the RAPIDS documentation page https://docs.rapids.ai/api/cusignal/nightly/api.html#cusignal.windows.windows.hann returns the following error message :
AttributeError: module 'cusignal' has no attribute 'butter'
Steps/Code to reproduce bug
import cusignal import cupy as cp import matplotlib.pyplot as plt
`fs = 10e3
N = 1e5
amp = 20
freq = 1234.0
noise_power = 0.001 * fs / 2
time = cp.arange(N) / fs
b, a = cusignal.butter(2, 0.25, 'low')
x = cp.random.normal(scale=cp.sqrt(noise_power), size=time.shape)
lfilter not implemented in cuSignal
y = cusignal.lfilter(b, a, x)
x += ampcp.sin(2cp.pifreqtime)
y += cp.random.normal(scale=0.1*cp.sqrt(noise_power), size=time.shape)`
Expected behavior
The Butterwirth filter seems to have been removed from a previous version in the nightly distribution of RAPIDS (23-04) that I have just installed.
Environment details (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: