# NOT RUN {
# Use as an example the three_changes dataset.
# Run the function with 5 change-points, a maximum depth of 5 and the [0,1,2] alphabet.
# The sampler is run for 100 iterations
output <- infer_unknown_changepoints(three_changes, 5, 5, c("012"), 100, fileName = NULL)
# If the fileName is not set to NULL,
# the output file will contain on each line the sampled number of change-points
# and the associated sampled locations of the change-points.
# }
Run the code above in your browser using DataLab