keyfct.grad.hn {mrds}R Documentation

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)

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)

Value

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


[Package mrds version 3.0.1 Index]