Score MFDFA spectrum (frac-mfdfa) within-sample discriminator
Source:R/singlesample-multifractal-dfa-scorers.R
score_frac_mfdfa.RdScores each row of X independently with the frozen model learned by
fit_frac_mfdfa. Model-universe features present in X are
placed in the frozen canonical order; for one specimen its within-sample rCLR
landscape is resampled to the frozen length, transformed into a fixed MFDFA
spectrum descriptor using the frozen scales and q grid, standardized by the
frozen training center/scale, and passed through the frozen ridge-LDA head.
Larger scores are more case-like.
Scoring uses only each row's own values plus the frozen model. If fewer than
model$hp$min_features model-universe features are present in X,
or a specimen's own positive support is below that floor, the documented
neutral score 0 is returned.
Arguments
- model
A
frac_mfdfa_modelreturned byfit_frac_mfdfa.- X
Numeric matrix (samples \(\times\) features) of non-negative abundance values. Columns must be named feature ids.
- meta
Optional per-sample metadata. Accepted for interface uniformity and ignored by this method.