Metadata-Version: 2.4
Name: uniform_signal_interp
Version: 0.1
Summary: Interpolation of uniformly sampled signal.
Author-email: Shibo Xu <sbxu@zju.edu.cn>
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.13.3
Dynamic: license-file

# uniform_signal_interp

High performance tools for uniform signal interpolation.

# Installation
```bash
pip install uniform_signal_interp
```
 Or
1. Cloning the repository to your machine.
2. Installing uniform_signal_interp using pip locally by the following command:
```bash
python setup.py build_ext --inplace
```
or directly building package under the folder "site-package":
```bash
pip install .
```

# Usage
```python
import numpy as np
import uniform_signal_interp

signal = np.array([1.0, 2.0, 4.0, 7.0]) # Assume signal is sampled from x_signal = [0, 1, 2, 3]
x = np.array([-1.0, 1.5, 2.5, 3.5])
output = uniform_signal_interp.uniform_signal_linear_interp(signal, x) # [1.0, 3.0, 5.5, 7.0]
```

# Performance test
![alt text](./image/speed_test.png)
