Metadata-Version: 2.4
Name: baselines-rs
Version: 0.1.1
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering
Requires-Dist: numpy>=1.23
Summary: Fast baseline correction for signals and surfaces, powered by Rust
License-Expression: MIT OR Apache-2.0
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://docs.rs/baselines
Project-URL: Repository, https://github.com/Ameyanagi/baselines

# baselines-rs

<p align="center">
  <img src="https://raw.githubusercontent.com/Ameyanagi/baselines/main/docs/assets/branding/baselines-icon-midnight-hex-v2.png" alt="baselines logo" width="220">
</p>

Python bindings for the Rust `baselines` crate. The first release intentionally
exposes a small default-based API; use the Rust crate directly for the complete
parameter and workspace APIs.

```python
import numpy as np
import baselines_rs

y = np.array([1.0, 1.1, 4.2, 1.2, 1.0])
estimated = baselines_rs.baseline(y)
corrected = baselines_rs.correct(y, method="arpls")
```

Two-dimensional NumPy arrays are accepted by `baseline_2d` and `correct_2d`.
Call `methods()` or `methods_2d()` to list the available method names.

