Learn R Programming

mrds (version 3.0.1)

keyfct.grad.hn: The gradient of the half-normal key function

Description

The key function contains one parameter, the scale. Current implementation assumes that scaled dist is x/scale, not x/width

Usage

keyfct.grad.hn(distance, key.scale)

Value

vector of derivatives of the half-normal key function w.r.t. the scale parameter

Arguments

distance

perpendicular distance vector

key.scale

vector of scale values

Details

d key / d scale = exp(-y ^ 2 / (2 scale ^ 2)) * (y ^ 2 / scale ^ 3)