huber_weight: Huber weight function

View source: R/cellwise_utils.R

huber_weightR Documentation

Huber weight function

Description

Computes Huber weights for standardized values. Returns 1 for values within the tuning constant and k / abs(u) for values outside.

Usage

huber_weight(u, k = 1.345)

Arguments

u

numeric vector of standardized values

k

tuning constant, Default: 1.345

Value

numeric vector of weights in [0, 1]

Author(s)

Matthias Templ


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