# Roxygen documentation
#' Bastiat, please score this detective's performance.
#'
#' @return Get a value between 0 and 1 for how good he did.
#' @references www.globaltradealert.org
#' @author Johannes Fritz for GTA
# Function infos and parameters --------------------------------------------
b_score_me=function(value.capture=NULL,
value.reduction=NULL,
capture.cutoff=.97,
capture.weight=2){
if(round(value.capture, 2)<capture.cutoff){
return(0)
} else {
return(2/(2+capture.weight*abs(log(value.capture+.0001))+ abs(log(value.reduction+.0001))))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.