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

View source: R/keyfct.grad.hn.R

keyfct.grad.hnR 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


DistanceDevelopment/mrds documentation built on Jan. 21, 2025, 12:33 a.m.