get_grooves_bcp: Conforming get_grooves_"name" function.

Description Usage Arguments Value Examples

View source: R/end_to_end_cp_algorithm_v2.R

Description

This is a wrapper function that comforms to the other get_grooves functions.

Usage

1
get_grooves_bcp(x, value, adjust = 10, ...)

Arguments

x

numeric vector of locations in microns

value

numeric vector of surface measurements in microns

adjust

positive number to adjust the grooves - XXX should be expressed in microns rather than an index

...

Additional arguments to be passed to detect_cp_v2.

Value

A named list containing the output from variable_cp_gibbs function, the range of data that was actually used for the changepoint algorithm (since it doesn't impute values past the outermost non-missing values), and the estimated groove locations.

Examples

1
2
3
4
5
6
7
8
data("example_data")
head(example_data)
example_data <- example_data[seq(from = 1, to = nrow(example_data), by = 30),]
cp_gibbs3 <- get_grooves_bcp(x = example_data$x,
    value = example_data$value,
    adjust = 10,
    iter = 300,
    warmup = 100)

nategarton13/bulletcp documentation built on Feb. 1, 2020, 10:03 a.m.