huber_mean: Element-wise adaptive Huber mean estimator.

View source: R/general_functions.R

huber_meanR Documentation

Element-wise adaptive Huber mean estimator.

Description

Computes the element-wise adaptive Huber mean estimator.

Usage

huber_mean(x, tau)

Arguments

x

A numeric vector of observations.

tau

A numeric scalar corresponding to the robustification parameter (larger than 0).

Value

A numeric scalar corresponding to the adaptive Huber mean estimator.

Author(s)

Haotian Xu

Examples

set.seed(123)
y = rnorm(100)
mean(y)
huber_mean(y, 1.345)

HaotianXu/changepoints documentation built on Oct. 11, 2023, 12:48 p.m.