Skip to content

Commit

Permalink
Fix references to things no longer in Base
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Nov 13, 2018
1 parent 544c838 commit 66b0a16
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Documenter, StatsBase
using Documenter, StatsBase, Statistics, Random

makedocs(
format = :html,
Expand Down
4 changes: 4 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

```@meta
CurrentModule = StatsBase
DocTestSetup = quote
using Statistics
using Random
end
```

*StatsBase.jl* is a Julia package that provides basic support for statistics. Particularly, it implements a variety of statistics-related functions, such as scalar statistics, high-order moment computation, counting, ranking, covariances, sampling, and empirical density estimation.
Expand Down
4 changes: 2 additions & 2 deletions docs/src/means.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ The `mean` and `mean!` functions are also extended to accept a weight vector of
`AbstractWeights` to compute weighted mean.

```@docs
Base.mean(A::AbstractArray, w::AbstractWeights)
Base.mean!(R::AbstractArray, A::AbstractArray, w::AbstractWeights, dim::Int)
Statistics.mean(A::AbstractArray, w::AbstractWeights)
Statistics.mean!(R::AbstractArray, A::AbstractArray, w::AbstractWeights, dim::Int)
```
4 changes: 2 additions & 2 deletions docs/src/sampling.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ All following functions write results to `x` (pre-allocated) and return `x`.
### Sampling Algorithms (Non-Weighted)

```@docs
StatsBase.direct_sample!(rng::AbstractRNG, a::AbstractArray, x::AbstractArray)
StatsBase.direct_sample!(rng::Random.AbstractRNG, a::AbstractArray, x::AbstractArray)
samplepair
StatsBase.knuths_sample!
StatsBase.fisher_yates_sample!
Expand All @@ -50,7 +50,7 @@ StatsBase.seqsample_c!
### Weighted Sampling Algorithms

```@docs
StatsBase.direct_sample!(rng::AbstractRNG, a::AbstractArray, wv::AbstractWeights, x::AbstractArray)
StatsBase.direct_sample!(rng::Random.AbstractRNG, a::AbstractArray, wv::AbstractWeights, x::AbstractArray)
StatsBase.alias_sample!
StatsBase.naive_wsample_norep!
StatsBase.efraimidis_a_wsample_norep!
Expand Down
2 changes: 1 addition & 1 deletion docs/src/scalarstats.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ percentile
iqr
nquantile
quantile
Base.median(v::StatsBase.RealVector, w::AbstractWeights{<:Real})
Statistics.median(v::StatsBase.RealVector, w::AbstractWeights{<:Real})
```

## Mode and Modes
Expand Down

0 comments on commit 66b0a16

Please sign in to comment.