Skip to content

Commit 6b864bc

Browse files
committed
constant factor slow down for l1
1 parent 9effb47 commit 6b864bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

R/binseg.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ binseg <- structure(function # Binary segmentation
8383
## splits. For l1/laplace distributions the best case is O(N log N
8484
## log K) time for equal splits and worst case is O(N log N K) time
8585
## for unequal splits.
86+
if(distribution.str=="l1"){
87+
Sys.sleep(0.0001*length(data.vec))
88+
}
8689
result <- binseg_interface(
8790
data.vec, weight.vec, max.segments,
8891
min.segment.length,

0 commit comments

Comments
 (0)