Compressed Sensing library for 1D Spectroscopic Profiling Data
Project description
cs1
Compressed Sensing library for 1D Spectroscopic Profiling
Installation
pip install cs1
A simple startup
from cs1 import cs, adaptive
# Generate common non-adaptive bases and save to a local pickle file.
# The generation process can be very slow, so save it for future use.
cs.Generate_PSIHs(n, savepath = 'PSIHs_' + str(n) + '.pkl') # n is the data/signal dimensionality
# load back bases
file = open('PSIs_' + str(n) + '.pkl','rb')
PSIs = pickle.load(file)
file.close()
# sparsity analysis
Analyze_Sparsity(x, PSIs)
# compare different bases and sampling ratio on a single sample
rmses = GridSearch_Sensing_n_Recovery(x, PSIs, solver = 'LASSO') # returns relative MSEs
low-level cs functions
dftmtx()
dctmtx()
hwtmtx()
Sensing()
Recovery()
Mutual_Coherence()
...
singal processing functions for other domains
Simulate_ECG()
dct_lossy_signal_compression()
dft_lossy_signal_compression()
img_dct()
img_dft()
dct_lossy_image_compression()
dft_lossy_image_compression()
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
cs1-0.0.4.tar.gz
(17.5 kB
view details)
Built Distribution
cs1-0.0.4-py3-none-any.whl
(18.4 kB
view details)
File details
Details for the file cs1-0.0.4.tar.gz
.
File metadata
- Download URL: cs1-0.0.4.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/1.5.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43a6027bb64772c478287fd9ad2e363bfe3c0f7a1e37f69d5c1de7dc17cc6f3c |
|
MD5 | ce32bfa8d5b50652a3fc384f55cda35e |
|
BLAKE2b-256 | 10554abd2c8d537c7f56c57d0c189e0df73aa704f893bf0f32dc51abd4629d3d |
File details
Details for the file cs1-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: cs1-0.0.4-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/1.5.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d26ab9d54c81e1720cf0cfeb4ddf296081e53149f82de8fa14e83bad146dc49 |
|
MD5 | 19acdeb2ebc278e4c433670580f6bf25 |
|
BLAKE2b-256 | 47fb177938d69f56829db946e0e854c7fe4366c08b079dda9037e58d4ee84969 |