huber_mean {changepoints} | R Documentation |
Computes the element-wise adaptive Huber mean estimator.
huber_mean(x, tau)
x |
A |
tau |
A |
A numeric
scalar corresponding to the adaptive Huber mean estimator.
Haotian Xu
set.seed(123)
y = rnorm(100)
mean(y)
huber_mean(y, 1.345)