Skip to content

Commit

Permalink
Reexport functions from Statistics
Browse files Browse the repository at this point in the history
It does not make any sense to avoid exporting functions from Statistics
to which we add methods. These are documented in the manual but currently
not available without typing `using Statistics`.
The only method from Statistics which we do not overload is `middle`, which
this commit does not reexport for now.
  • Loading branch information
nalimilan authored and andreasnoack committed Nov 26, 2021
1 parent 89137fc commit 7c8d24a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/StatsBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ import StatsAPI: pairwise, pairwise!

export

## functions defined in Statistics
cor,
cov,
mean,
mean!,
median,
median!,
quantile,
quantile!,
std,
stdm,
var,
varm,

## weights
AbstractWeights, # abstract type to represent any weight vector
Weights, # to represent a generic weight vector
Expand Down
1 change: 0 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ using StatsBase
using Dates
using LinearAlgebra
using Random
using Statistics

tests = ["ambiguous",
"weights",
Expand Down

0 comments on commit 7c8d24a

Please sign in to comment.