1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Clean-room Rust implementation of selected R `locfit`-compatible local
//! regression behavior.
//!
//! This crate currently focuses on the one-dimensional local polynomial path
//! needed for DESeq2-style local dispersion trend fitting. It does not bind to
//! R, does not call R at runtime, and does not contain R `locfit` source code.
//! The DESeq2-oriented path is fixture-validated against black-box R `locfit`;
//! broader exact R `locfit` parity is still in progress.
//!
//! # Example
//!
//! ```
//! use rcompat_locfit::fit_deseq2_local_dispersion_trend;
//!
//! let means = [1.0, 2.0, 5.0, 10.0, 100.0, 1000.0];
//! let disps = [0.5, 0.3, 0.2, 0.12, 0.06, 0.03];
//!
//! let trend = fit_deseq2_local_dispersion_trend(&means, &disps, 1e-8)?;
//! let prediction = trend.predict_one(30.0)?;
//! assert!(prediction.is_finite() && prediction > 0.0);
//! # Ok::<(), rcompat_locfit::LocfitError>(())
//! ```
pub use ;
pub use ;
pub use LocfitError;
pub use LocalFit;