ExpRoot+Log: A Linear and Universal Basis for Function Approximation
ExpRoot+Log is a fast and interpretable function approximation method based on a hybrid linear basis. It combines exponential square-root, polynomial, and logarithmic terms to efficiently approximate a wide range of functions, including smooth, discontinuous, and decaying ones.
Features
- Fast and accurate: Uses a minimal set of basis functions for efficient function approximation.
- Interpretable: Each term in the basis has a clear mathematical interpretation.
- Flexible: Can handle smooth, discontinuous, and asymptotically decaying functions.
- Linear regression: Uses standard least-squares fitting for optimal performance.
Usage
Add the dependency to Cargo.toml:
[]
= "0.1.0"
📂 examples/demo.rs:
use approx_exp_root_log;