Objective function for the breakpoint optimization algorithm
for fixed interval trials. This function is used by optim
to find the
optimal breakpoint. Do not call this function directly.
objective_bp(param, r_times, trial_duration)
A numeric value representing the sum of areas between the response rate and the target rate.
A numeric value of the breakpoint
A numeric vector of response times
A numeric value of the trial duration