From 7c8d24adf6baa94db7b4395c919da7944a6d2d0b Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Sun, 21 Nov 2021 13:35:12 +0100 Subject: [PATCH] Reexport functions from Statistics 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. --- src/StatsBase.jl | 14 ++++++++++++++ test/runtests.jl | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/StatsBase.jl b/src/StatsBase.jl index 03320937b..b88daba19 100644 --- a/src/StatsBase.jl +++ b/src/StatsBase.jl @@ -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 diff --git a/test/runtests.jl b/test/runtests.jl index 7d30ecd88..94986d240 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,7 +2,6 @@ using StatsBase using Dates using LinearAlgebra using Random -using Statistics tests = ["ambiguous", "weights",