Skip to contents

Implements the weight function (1 - (d / max(d))^3)^3 for non-negative distances d, returning 1 when d == 0 and tapering smoothly to 0 at max(d). This mirrors the weight choice in the original research code.

Usage

.tricube(dist)

Arguments

dist

Numeric vector of non-negative distances.

Value

Numeric vector of the same length, each element in [0, 1].