Skip to content

Commit

Permalink
Refactor variance utilities for easier re-use.
Browse files Browse the repository at this point in the history
All calculations now use Welford's algorithm for greater numerical stability.
It also ensures identical results between the running and direct approaches.

Also support skipping of NaNs, mimicking na.rm= in matrixStats functions.
  • Loading branch information
LTLA committed Mar 25, 2024
1 parent ba1f4d4 commit 58e66af
Show file tree
Hide file tree
Showing 3 changed files with 497 additions and 227 deletions.
Loading

0 comments on commit 58e66af

Please sign in to comment.