BPSK modulation and demodulation functions
Project description
BPSK Modulation and Demodulation
This package provides functions for BPSK modulation and demodulation.
Installation
You can install the package via pip:
.. code:: bash
pip install bpsk_mod
Usage
Here is an example of how to use the package:
import numpy as np
from bpsk_mod.modulation import modulator, demodulator
# Parameters
N = 1000 # Number of bits
L = 16 # Upsampling factor
# Generate random binary message
bit = np.random.randint(0, 2, N)
# Modulate the message
modulated_signal, t = modulator(bit, L)
# Demodulate the signal (e.g., with noise)
received_signal = modulated_signal # Assume no noise for simplicity
demodulated_bits = demodulator(received_signal, L)
# Print the demodulated bits
print("Demodulated bits:", demodulated_bits)
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
bpsk_mod-0.0.0.tar.gz
(2.8 kB
view details)
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 bpsk_mod-0.0.0.tar.gz.
File metadata
- Download URL: bpsk_mod-0.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.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19788cb60de1e6a98cae804a68a8dc3044faef84936ed0a88f16c58fc767e008
|
|
| MD5 |
ab1ae3e89fbd2d556b78110ea1bc2887
|
|
| BLAKE2b-256 |
f00b6a522a1b321c61b3bc893feb06f86f4c0143c5326571dff7ef05b1b21394
|
File details
Details for the file bpsk_mod-0.0.0-py3-none-any.whl.
File metadata
- Download URL: bpsk_mod-0.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cc4196aa30460e8541f6d617f8be68f27e08551d5f28c979163f74198028b06
|
|
| MD5 |
961003ea4249003c2c618f0f1f5e564e
|
|
| BLAKE2b-256 |
8983fbed67d843a8ea8d011d60ead49e20fde713d16420ae7af144f1715762e5
|