Library for composing signals from arrays and functions.
Project description
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
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
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
signal_composer-0.0.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for signal_composer-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3be8dc74fe4aae95e16a2614d66fa641411269214ba5b917d7ccc6d346d551d7 |
|
MD5 | ad2eb1db5f02034e6162f585e9cddecd |
|
BLAKE2b-256 | 7276ea94a04e2084a464a98ba07f5fab8723898454acaff5723677aa95bea285 |