Description Usage Arguments Details Value Examples
Because precipitation is heavy-tailed, the process of
constructing a distribution mapping (a distmap
object) for precipitation tends to overfit the upper tails. To
avoid this problem, it is useful in this case to trim extreme
values from the input datasets. This function discards the top
p
% of values from the input vector.
1 |
x |
a vector of values. |
p |
the percentage of values to discard. Defaults to 1%. |
... |
further arguments passed on to |
This function uses the stats::quantile
function to find a
cutoff value. Because any quantile with probability less than 1
is always less than the maximum value, the function will always
trim the maximum value from x.
The input vector x
with the top p
percent
of values (minimum 1) removed.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.