-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve numerical stability of
cov
(#85)
`cov(::AbstractVector, ::AbstractVector)` was less stable than other `cov` methods and than `var` on arrays as it called `sum` on a generator, which does not use pairwise summation. Use `dot` instead, which is also faster, and was used before 7deac81, where it was removed to be able to move LinearAlgebra to a separate package (when statistics.jl was in Base).
- Loading branch information
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters