Closed jdblischak closed 3 years ago
The function rmv() has an argument mu that appears to be unused:
rmv()
mu
https://github.com/ghm17/LOGODetect/blob/61e39cbc04d69b2bb354672529673a10fcdbb6ac/Code/random_vector_generation.R#L41-L50
A long vector of zeros is passed to mu (the same length as the dimensions of Sigma), and I did a quick test to convince myself that the argument had no effect:
Sigma
> set.seed(1) > ss1 = rmv(3*N, rep(0, len[1]), ld_diag[[1]]) > set.seed(1) > ss2 = rmv(3*N, Sigma = ld_diag[[1]]) > identical(ss1, ss2) [1] TRUE
This PR removes the unused argument mu and updates the calls rmv() to remove the vector of zeros.
@jdblischak Yes, mu is needless in function rmv. Thanks for your suggestive comment.
rmv
The function
rmv()
has an argumentmu
that appears to be unused:https://github.com/ghm17/LOGODetect/blob/61e39cbc04d69b2bb354672529673a10fcdbb6ac/Code/random_vector_generation.R#L41-L50
A long vector of zeros is passed to
mu
(the same length as the dimensions ofSigma
), and I did a quick test to convince myself that the argument had no effect:This PR removes the unused argument
mu
and updates the callsrmv()
to remove the vector of zeros.