A Python package for fundamental signal processing operations
Project description
signal_ICT_Keshvi_92510133028/ │── init.py │── unitary_signals.py # Unit step, unit impulse, ramp │── trigonometric_signals.py # Sine, cosine, exponential │── operations.py # Time shift, time scale, add, multiply main.py # Demo script pyproject.toml # Packaging details README.md # Documentation
This models will display: Unitary signals → step, impulse, ramp Trigonometric signals → sine, cosine Exponential signals → growth & decay Operations → time shift, scaling, addition, multiplication
1. unitary_signals.py
Implements basic discrete-time signals:
unit_step(n)– Generates a unit step signal.unit_impulse(n)– Generates a unit impulse signal.ramp_signal(n)– Generates a ramp signal.
2. trigonometric_signals.py
Implements continuous-time signals:
sine_wave(A, f, phi, t)– Generates a sine wave with amplitudeA, frequencyf, phasephi, and time vectort.cosine_wave(A, f, phi, t)– Generates a cosine wave.exponential_signal(A, a, t)– Generates an exponential signal (growth/decay).
3. operations.py
Implements signal operations:
time_shift(signal, n, k)– Shifts a signal bykunits (delay/advance).time_scale(signal, n, k)– Scales a signal’s time axis by factork.signal_addition(signal1, signal2)– Adds two signals element-wise.signal_multiplication(signal1, signal2)– Multiplies two signals element-wise.
4. main.py
Main script to demonstrate:
- Generate and plot a unit step and unit impulse signal (length 20).
- Generate a sine wave of amplitude 2, frequency 5 Hz, phase 0, over
t = 0 to 1 sec. - Perform time shifting on the sine wave by +5 units and plot both original and shifted signals.
- Perform addition of unit step and ramp signals.
- Multiply a sine and cosine wave of same frequency and plot the result.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file signal_ict_keshvi_92510133028-1.0.0.tar.gz.
File metadata
- Download URL: signal_ict_keshvi_92510133028-1.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b770e0088e9bf82390fb1387288a7eed4dc8775ebc1ba691475064e6b1f2d67
|
|
| MD5 |
59ef84b08410ef2fa3f4713294df9316
|
|
| BLAKE2b-256 |
e55223e4458d1834f9cafcaaf7efcb7c73d959f8a237ac940c4c89ba7c7de8a6
|
File details
Details for the file signal_ict_keshvi_92510133028-1.0.0-py3-none-any.whl.
File metadata
- Download URL: signal_ict_keshvi_92510133028-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9365121a2b38856352b22fa4a9fac3644e7bf575300c4efa536f1a3d0ea86c23
|
|
| MD5 |
e1b5430d276dcce1efcca511eccb0d34
|
|
| BLAKE2b-256 |
b512ef42bd6318a6d7671ce946a37fe77da77d734292d8c3ad93b2d2e602ebf9
|