Skip to content

Commit

Permalink
Remove unneccessary code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmgarnier committed Jul 13, 2024
1 parent 093ef6a commit ec9cc7d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions R/gravitree.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ gravitree <- function(x, m, k = NULL, sample = 1, na_rm = FALSE) {
ix <- cluster == i
.wcov(xx[ix, , drop = FALSE], mm[ix])
})
# tmp <- rep(NA, nr)
# tmp[ix] <- cluster
# tmp[notix] <- Rfast::rowMins(sapply(1:k, function(i) {
# .Mahalanobis(x[notix, , drop = FALSE], centers[[i]]$center, centers[[i]]$cov)
# }))
# cluster <- tmp
} else {
centers <- lapply(1:k, function(i) {
ix <- cluster == i
Expand Down

0 comments on commit ec9cc7d

Please sign in to comment.