data("r_times")
r_times <- r_times[r_times < 60]
single_bp <- exhaustive_sbp(r_times, 60)
plot(r_times, seq_along(r_times),
xlim = c(0, max(r_times)),
main = "Cummulative Record",
xlab = "Time (s)",
ylab = "Cum Resp",
col = 2, type = "s"
)
abline(v = single_bp$bp)
bp_from_opt <- bp_opt(r_times, 60)
abline(v = bp_from_opt$bp, col = 3)
Run the code above in your browser using DataLab