Skip to main content

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 amplitude A, frequency f, phase phi, and time vector t.
  • 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 by k units (delay/advance).
  • time_scale(signal, n, k) – Scales a signal’s time axis by factor k.
  • 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:

  1. Generate and plot a unit step and unit impulse signal (length 20).
  2. Generate a sine wave of amplitude 2, frequency 5 Hz, phase 0, over t = 0 to 1 sec.
  3. Perform time shifting on the sine wave by +5 units and plot both original and shifted signals.
  4. Perform addition of unit step and ramp signals.
  5. Multiply a sine and cosine wave of same frequency and plot the result.

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

signal_ict_keshvi_92510133028-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file signal_ict_keshvi_92510133028-1.0.0.tar.gz.

File metadata

File hashes

Hashes for signal_ict_keshvi_92510133028-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5b770e0088e9bf82390fb1387288a7eed4dc8775ebc1ba691475064e6b1f2d67
MD5 59ef84b08410ef2fa3f4713294df9316
BLAKE2b-256 e55223e4458d1834f9cafcaaf7efcb7c73d959f8a237ac940c4c89ba7c7de8a6

See more details on using hashes here.

File details

Details for the file signal_ict_keshvi_92510133028-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for signal_ict_keshvi_92510133028-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9365121a2b38856352b22fa4a9fac3644e7bf575300c4efa536f1a3d0ea86c23
MD5 e1b5430d276dcce1efcca511eccb0d34
BLAKE2b-256 b512ef42bd6318a6d7671ce946a37fe77da77d734292d8c3ad93b2d2e602ebf9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page