huber_mean {changepoints} | R Documentation |
Element-wise adaptive Huber mean estimator.
Description
Computes the element-wise adaptive Huber mean estimator.
Usage
huber_mean(x, tau)
Arguments
x |
A |
tau |
A |
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)
[Package changepoints version 1.1.0 Index]