Nothing
#' The gradient of the half-normal key function
#'
#' The key function contains one parameter, the scale.
#' Current implementation assumes that scaled dist is x/scale, not x/width
#'
#' d key / d scale = exp(-y ^ 2 / (2 scale ^ 2)) * (y ^ 2 / scale ^ 3)
#'
#' @param distance perpendicular distance vector
#' @param key.scale vector of scale values
#'
#' @return vector of derivatives of the half-normal key function w.r.t. the
#' scale parameter
keyfct.grad.hn <- function(distance, key.scale){
return(exp(- distance ^ 2 / (2 * key.scale ^ 2)) *
(distance ^ 2 / key.scale ^ 3))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.