Skip to content

Commit 8629d94

Browse files
committed
robust.jl
1 parent 07e0fbb commit 8629d94

File tree

8 files changed

+20
-5
lines changed

8 files changed

+20
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "Statistics"
2-
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2+
uuid = "20745b16-79ce-11e8-11f9-7d13ad32a3b2"
33

44
[deps]
55
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
Statistics = "20745b16-79ce-11e8-11f9-7d13ad32a3b2"
34

45
[compat]
56
Documenter = "0.27"

docs/make.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ makedocs(
1111
pages = ["index.md",
1212
"weights.md",
1313
"scalarstats.md",
14-
"cov.md"]
14+
"cov.md",
15+
"robust.md"]
1516
)
1617

1718
deploydocs(

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Statistics can be weighted, and several weights types are distinguished to apply
1010
corrections where necessary.
1111

1212
```@contents
13-
Pages = ["weights.md", "scalarstats.md", "cov.md"]
13+
Pages = ["weights.md", "scalarstats.md", "cov.md", "robust.md"]
1414
Depth = 2
1515
```

docs/src/robust.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Robust Statistics
2+
3+
```@docs
4+
trim
5+
trim!
6+
winsor
7+
winsor!
8+
trimvar
9+
```

src/Statistics.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export std, stdm, var, varm, mean!, mean,
3030
partialcor,
3131
# signalcorr.jl
3232
autocov!, autocov, autocor!, autocor, crosscov!, crosscov, crosscor!, crosscor,
33-
pacf!, pacf
33+
pacf!, pacf,
34+
# robust.jl
35+
trim, trim!, trimvar, winsor, winsor!
3436

3537
include("common.jl")
3638
include("weights.jl")
@@ -41,6 +43,7 @@ include("cov.jl")
4143
include("partialcor.jl")
4244
include("toeplitzsolvers.jl")
4345
include("signalcorr.jl")
46+
include("robust.jl")
4447

4548
##### mean #####
4649

test/robust.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using StatsBase
1+
using Statistics
22
using Test
33

44
### Trimming outliers

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,3 +894,4 @@ include("moments.jl")
894894
include("cov.jl")
895895
include("partialcor.jl")
896896
include("signalcorr.jl")
897+
include("robust.jl")

0 commit comments

Comments
 (0)