tukey_weight: Tukey bisquare weight function

View source: R/cellwise_utils.R

tukey_weightR Documentation

Tukey bisquare weight function

Description

Computes Tukey bisquare weights for standardized values. Returns (1 - (u/k)^2)^2 for values within the tuning constant and 0 for values outside.

Usage

tukey_weight(u, k = 4.685)

Arguments

u

numeric vector of standardized values

k

tuning constant, Default: 4.685

Value

numeric vector of weights in [0, 1]

Author(s)

Matthias Templ


VIM documentation built on Sept. 2, 2026, 5:07 p.m.