Your handy frequency and impulse response processing object
Project description
Response
(work in progress)
The response module defines the Response
class as an abstraction of frequency and impulse responses.
from response import Response
fs = 16
x = [1]
# Create impulsive response and do chain of processing
r = Response.from_time(fs, x) \
.zeropad(0, 15) \
.delay(0.5) \
.resample(10 * fs, window=('kaiser', 0.5)) \
.timecrop(0, 0.6) \
.time_window((0, 0.2), (0.5, 0.6))
# plot result
r.plot(show=True)
# time domain data
r.in_time
# frequency domain data
r.in_freq
Testing
Run tests in base directory with
pytest
Always run tests before pushing code.
Developing
Install for development with pip install -e .
.
Comments should comply with the Numpy/Scipy documentation style. An example can also be found here. Code should comply to the pep8 coding style. You can check if the code complies by executing
pycodestyle
pydocstyle
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
response-0.1.0.tar.gz
(13.0 kB
view hashes)
Built Distribution
Close
Hashes for response-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96d354af4a8ca3796fbf444047ecf8e06ebf3cbf547c79f920b060e81f7d9217 |
|
MD5 | 83347db8a2bebf579f2e76c8df5cebde |
|
BLAKE2b-256 | 9bade30f69924ee6169ffd62bfadc50cfeb679e365af339fd44d8fa716bd3ab0 |