Trimmed mean
Compute mean after trimming both tails by fraction.
x (Vector | List): Numeric
input.
trim (Float): Trim proportion in
[0, 0.5).
na_rm (Bool): = false Remove NA
values first.
weights
(Vector[Float] | List[Float]): = NA Optional non-negative
observation weights.
Computed result (scalar or vectorized).