Skip to content

Commit 45af4da

Browse files
committed
priority_queue is default
1 parent 7bbc84a commit 45af4da

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

R/RcppExports.R

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
22
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
33

4-
#' Efficient log-linear cumulative median.
4+
### Efficient log-linear cumulative median.
55
cum_median_interface <- function(data_vec, weight_vec) {
66
.Call(`_binsegRcpp_cum_median_interface`, data_vec, weight_vec)
77
}
88

9-
#' Use depth first search to compute a data.frame
10-
#' with one row for each segment, and columns
11-
#' splits and depth, number/depth of candidate
12-
#' splits that need to be
13-
#' computed after splitting that segment.
9+
### Use depth first search to compute a data.frame
10+
### with one row for each segment, and columns
11+
### splits and depth, number/depth of candidate
12+
### splits that need to be
13+
### computed after splitting that segment.
1414
depth_first_interface <- function(n_data, min_segment_length) {
1515
.Call(`_binsegRcpp_depth_first_interface`, n_data, min_segment_length)
1616
}
1717

18-
#' Compute a data.frame with one row for each distribution
19-
#' implemented in the C++ code, and columns distribution.str,
20-
#' parameters, description.
18+
### Compute a data.frame with one row for each distribution
19+
### implemented in the C++ code, and columns distribution.str,
20+
### parameters, description.
2121
get_distribution_info <- function() {
2222
.Call(`_binsegRcpp_get_distribution_info`)
2323
}
2424

25-
#' Low-level interface to binary segmentation algorithm.
25+
### Low-level interface to binary segmentation algorithm.
2626
binseg_interface <- function(data_vec, weight_vec, max_segments, min_segment_length, distribution_str, container_str, is_validation_vec, position_vec) {
2727
.Call(`_binsegRcpp_binseg_interface`, data_vec, weight_vec, max_segments, min_segment_length, distribution_str, container_str, is_validation_vec, position_vec)
2828
}

R/binseg.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ binseg <- structure(function # Binary segmentation
2525
min.segment.length=NULL,
2626
### Positive integer, minimum number of data points per
2727
### segment. Default NULL means to use min given distribution.str.
28-
container.str="multiset"
28+
container.str="priority_queue"
2929
### C++ container to use for storing breakpoints/cost. Most users
30-
### should leave this at the default "multiset" for efficiency but you
31-
### could use "list" if you want to study the time complexity of a
30+
### should leave this at the default "priority_queue" for efficiency, but you
31+
### could use "list" if you want to study the time complexity of an asymptotically
3232
### slower implementation of binary segmentation.
3333
){
3434
##alias<< binsegRcpp

man/binseg.Rd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ log-linear time, using coef method.}
1515
weight.vec = rep(1,
1616
length(data.vec)),
1717
min.segment.length = NULL,
18-
container.str = "multiset")}
18+
container.str = "priority_queue")}
1919
\arguments{
2020
\item{distribution.str}{String indicating distribution/loss function, use
2121
\code{\link{get_distribution_info}} to see possible values.}
@@ -32,8 +32,8 @@ default=1:length(\code{data.vec}).}
3232
\item{min.segment.length}{Positive integer, minimum number of data points per
3333
segment. Default NULL means to use min given \code{distribution.str}.}
3434
\item{container.str}{C++ container to use for storing breakpoints/cost. Most users
35-
should leave this at the default "multiset" for efficiency but you
36-
could use "list" if you want to study the time complexity of a
35+
should leave this at the default "priority_queue" for efficiency, but you
36+
could use "list" if you want to study the time complexity of an asymptotically
3737
slower implementation of binary segmentation.}
3838
}
3939
\details{Each iteration involves first computing and storing the

0 commit comments

Comments
 (0)