spectral-cockpit / specprepper

🎒 Be prepared. Compose and apply combinations of preprocessing operations on spectra
https://spectral-cockpit.github.io/specprepper/
Other
1 stars 0 forks source link

Feature: Standard Normal Variate (SNV) #13

Closed philipp-baumann closed 1 year ago

philipp-baumann commented 1 year ago

eventually use {polars} operation.

philipp-baumann commented 1 year ago
philipp-baumann commented 1 year ago
  • check different implementations how to sweep the statistics from matrix.

    • matrixStats::rowMeans2() and matrixStats::rowSds()
    • use base::sweep()
    • pure data.table lapply(.SD, ...) type of sweeping.
    • a {polars} implementation

for now, at least until CRAN release, {polars} impl has to wait.

philipp-baumann commented 1 year ago

=> current implementation: rowMeans2() and rowSds() from {matrixStats} in combination with base::sweep().