calculate_exact_changepoint_posterior {BCT}R Documentation

Calculates the exact posterior for a sequence with a single change-point.

Description

This function calculates the exact posterior for a sequence with a single change-point.

Usage

calculate_exact_changepoint_posterior(input_data, depth, alphabet)

Arguments

input_data

the sequence to be analysed.

depth

maximum memory length.

alphabet

symbols appearing in the sequence.

Value

empirical posterior of the change-points locations.

See Also

infer_unknown_changepoints

Examples

# Use the first 300 samples of the simian_40 dataset.
# Run the function with 1 change-point, a maximum depth of 2 and the ["a", "c", "g", "t"] alphabet.

res <- calculate_exact_changepoint_posterior(substr(simian_40, 1, 300), 2, c("acgt"))

[Package BCT version 1.2 Index]