Skip to main content

signal_composer

Library for composing signals from arrays and functions.

Usage

Creating Signals

From interpolated arrays

signal = Signal([1, 0, 1, -1, 1])

From functions

f = lambda x: x ** 3 - x ** 2
signal = Signal(f)

f = lambda x: x ** 3 - x ** 2
signal = Signal(f, function_input_span=[0, 1 + 0.25])

Composing Signals

From adding signals

signal_1 = Signal([0, 1])
signal_2 = Signal(lambda x: 1 + x ** 3)
composed_signal = signal_1 + signal_2

Time-series for the composed signal above.

From lists

signals = [
    lambda x: x ** 2,
    [-1, 0, 1],
    lambda x: 4 + x ** (1/2)
]

composed_signal = Signal.compose_from_list(signals)

How to install

Option 1: Manually

Clone the GitHub repo and install manually by passing

gh repo clone danlessa/signal_composer
cd signal_composer
pip install -e .

Option 2: PyPi

Just pass: pip install signal_composer

Release files for signal-composer 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for signal-composer 0.0.2
File Size Uploaded
signal_composer-0.0.2.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for signal-composer 0.0.2
File Interpreter ABI Platform
signal_composer-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / signal_composer-0.0.2.tar.gz

Download URL signal_composer-0.0.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7bdd5770e25f7897571fb9df3cf5f6db761828102b9edf12ab3d333b3a790516
BLAKE2b-256 checksum
How to use checksums
fb3bd19ab0427c4be16b9a5876e9804336c232776b07ad54e95bbc15b851bb8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.5

Release files / signal_composer-0.0.2-py3-none-any.whl

Download URL signal_composer-0.0.2-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3be8dc74fe4aae95e16a2614d66fa641411269214ba5b917d7ccc6d346d551d7
BLAKE2b-256 checksum
How to use checksums
7276ea94a04e2084a464a98ba07f5fab8723898454acaff5723677aa95bea285
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page