Skip to content
Snippets Groups Projects
Commit 69b4ec27 authored by SANTAGOSTINI Pierre's avatar SANTAGOSTINI Pierre
Browse files

apply replaced with rowSums

parent 45a3a82e
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@ kldcauchy <- function(Sigma1, Sigma2, eps = 1e-06) {
}
}
Msum <- apply(M, 1, sum)
Msum <- rowSums(M)
d <- 0
for (i in 1:length(Msum)) {
......@@ -213,7 +213,7 @@ kldcauchy <- function(Sigma1, Sigma2, eps = 1e-06) {
}
}
Msum <- apply(M, 1, sum)
Msum <- rowSums(M)
d <- 0
for (i in 1:length(Msum)) {
......@@ -409,7 +409,7 @@ kldcauchy <- function(Sigma1, Sigma2, eps = 1e-06) {
}
}
Msum <- apply(M, 1, sum)
Msum <- rowSums(M)
d <- 0
for (i in 1:length(Msum)) {
......@@ -464,7 +464,7 @@ kldcauchy <- function(Sigma1, Sigma2, eps = 1e-06) {
}
}
Msum <- apply(M, 1, sum)
Msum <- rowSums(M)
d <- 0
for (i in 1:length(Msum)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment