Expand description
normexp convolution model and background correction.
Pure-Rust port of limma’s background-normexp.R, background.R and the
saddlepoint optimiser in src/normexp.c. Implements:
normexp_signal— exact expected signal under the normal+exponential convolution model (normexp.signal).normexp_fit_saddle—normexp.fit(method = "saddle"), the limma default: minimise the saddlepoint approximation to-2 log Lby Nelder-Mead ([nmmin], a faithful port of R’snmmin).background_correct_matrix—backgroundCorrect.matrixfor thenone/subtract/half/minimum/movingmin/edwards/normexpmethods.
Structs§
- Normexp
Fit - Fitted parameters from
normexp_fit_saddle.
Enums§
- Background
Method - Background-correction method for
background_correct_matrix.
Functions§
- background_
correct_ matrix backgroundCorrect.matrix(E, Eb, method, offset).ebis the optional background matrix; when absent, the methods that require it fall back tonone(as limma does).offsetis added after correction iff nonzero.- normexp_
fit_ saddle normexp.fit(x, method = "saddle"). Returns(mu, log(sigma), log(alpha))and the minimised saddlepoint-2 log L.- normexp_
signal normexp.signal(par, x): expected signal given foregroundxunder the normal(mu,sigma) + exponential(alpha) convolution model, wherepar = (mu, log(sigma), log(alpha)).