#' Create universal delta set
#'
#' Given a positive limit and granularity create your universal delta space.
#' This function was developed as part of booking curve optimization algorithm development.
#'
#' @param limit A numeric of the delta space limit.
#' @param granularity A numeric of delta space granularity (i.e. the lenght of "jumps" within the space).
#' @return A numeric vector of delta space in positive and negative directions.
#' @export
create_universal_delta_set = function(limit=0.05,granularity=0.01){
if(!limit>granularity){
stop("Granularity must be less than limit")
}
o = seq(from=-limit,to=limit,by=granularity)
return(o)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.