## Not run: # Takes more than 6 seconds therefor CRAN should not check it:
# r <- c(runif(10), runif(10, 0, 0.01))
# result <- aorc(r, 0.05)
# result <- aorc(r, 0.05, startIDX_SUD = 1) ## step-down
# result <- aorc(r, 0.05, startIDX_SUD = length(r)) ## step-up## End(Not run)
Run the code above in your browser using DataLab