Skip to content

Commit

Permalink
cleanup, delete script_test_delete_gaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Durand committed May 3, 2024
1 parent 14d7b05 commit 8f8cd2b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 116 deletions.
1 change: 0 additions & 1 deletion inst/DBNR/envelopes-hybrid/script_refining_benefit.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO BEFORE MERGE: rename zetas.tree
library(sanssouci)

set.seed(12)
Expand Down
10 changes: 2 additions & 8 deletions inst/DBNR/envelopes-hybrid/script_test_Vstar_improv.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO BEFORE MERGE: rename zetas.tree
library(sanssouci)
library(microbenchmark)

Expand Down Expand Up @@ -53,13 +52,8 @@ V.star.2 <- function(S, C, ZL, leaf_list) {
if (nb_regions>0) {
for (j in 1:nb_regions) {
Chj <- C[[h]][[j]]

#region_vector <- unlist(leaf_list[Chj[1]:Chj[2]])
#len_inter <- sum(S %in% region_vector)
sum_succ <- sum(Vec[Chj[1]:Chj[2]])
# res <- min(ZL[[h]][j], len_inter, sum_succ)
sum_succ <- sum(Vec[Chj[1]:Chj[2]])
res <- min(ZL[[h]][j], sum_succ)

Vec[Chj[1]:Chj[2]] <- 0
Vec[Chj[1]] <- res
}
Expand Down Expand Up @@ -131,7 +125,7 @@ C <- example$C
pval <- runif(n = m)
alpha <- 0.05
method <- zeta.trivial
ZL <- zetas.tree.no.extension(C, leaf_list, method, pval, alpha, refine = TRUE, verbose = FALSE)
ZL <- zetas.tree(C, leaf_list, method, pval, alpha, refine = TRUE, verbose = FALSE)


micr <- microbenchmark(
Expand Down
107 changes: 0 additions & 107 deletions inst/DBNR/envelopes-hybrid/script_test_delete_gaps.R

This file was deleted.

0 comments on commit 8f8cd2b

Please sign in to comment.