Learn R Programming

changepointsHD (version 0.3.3)

bbmod_method: Wrapper method for black-box estimation.

Description

Applies the black-box estimator to the specified partition given the current tau value. Additionally, this wrapper handles the different data structures possible for part_values and whole_values.

Usage

bbmod_method(object, part, tau)

# S4 method for changepointsMod bbmod_method(object, part, tau)

Arguments

object

Corresponding changepointsMod class.

part

Index for current partition, should be 1 or 2.

tau

Current change-point. Should be between buff and N - buff.

Value

An updated version of the change-point model. There are currently three possible updates depending on the form of the part_values and whole_values provided. 1) If only part_values are provided, then we assume the black-box method only updates part_values. 2) If only whole_values are provide, we assume the black-box method only updates whole_values. 3) If both part_values and whole_values are provided, we assume that both are updated.