🦀 detrend: Signal Detrending for Rust
A lightweight and efficient Rust crate for removing underlying trends and baseline drift from signals (time series data). This is essential in signal processing and data analysis to isolate meaningful fluctuations from long-term bias.
💡 Example
use ;
🧩 Functions
The crate provides type-specific functions for precision and performance:
detrend_f32(signal: &[f32], method: DetrendingMethod)detrend_f64(signal: &[f64], method: DetrendingMethod)
Both functions return a Result<Vec<T>, DetrendError>, primarily for handling potential DetrendError::AllocationError in low-memory environments.
This project is licensed under either of
at your option.