We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f1a304 commit 234d290Copy full SHA for 234d290
README.md
@@ -75,6 +75,9 @@ A few statistics are defined:
75
```julia
76
# return statistics
77
returnlevels(xs)
78
+
79
+# mean excess with previous k values
80
+meanexcess(xs, k)
81
```
82
83
## References
src/stats.jl
@@ -38,7 +38,7 @@ end
38
39
Return mean excess of the data `xs` using previous `k` values.
40
"""
41
-meanexcess(xs::AbstractVector, k::Int) = meanexcess(xs, [k])
+meanexcess(xs::AbstractVector, k::Int) = meanexcess(xs, [k])[1]
42
43
function meanexcess(xs::AbstractVector, ks::AbstractVector{Int})
44
ys = sort(xs, rev=true)
0 commit comments