Skip to content

Commit edac940

Browse files
committed
Merge branch 'master' of ../StatsBase into StatsBase
2 parents da6057b + aad1fe0 commit edac940

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+10524
-0
lines changed

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: off

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
docs/build
2+
docs/site
3+
perf/*.csv
4+
Manifest.toml

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: julia
2+
os:
3+
- linux
4+
- osx
5+
julia:
6+
- 0.7
7+
- 1.0
8+
- nightly
9+
notifications:
10+
email: false
11+
# Work around a Travis bug
12+
git:
13+
depth: 999999
14+
# Uncomment the following lines to override the default test script
15+
#script:
16+
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
17+
# - julia -e 'Pkg.clone(pwd()); Pkg.build("StatsBase"); Pkg.test("StatsBase"; coverage=true)'
18+
after_success:
19+
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())';
20+
jobs:
21+
include:
22+
- stage: "Documentation"
23+
julia: 1.0
24+
os: linux
25+
script:
26+
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
27+
Pkg.instantiate()'
28+
- julia --project=docs/ docs/make.jl
29+
after_success: skip
30+

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## StatsBase.jl
2+
3+
*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.
4+
5+
- **Current Release**:
6+
[![StatsBase](http://pkg.julialang.org/badges/StatsBase_0.5.svg)](http://pkg.julialang.org/?pkg=StatsBase)
7+
[![StatsBase](http://pkg.julialang.org/badges/StatsBase_0.6.svg)](http://pkg.julialang.org/?pkg=StatsBase)
8+
- **Build & Testing Status:**
9+
[![Build Status](https://travis-ci.org/JuliaStats/StatsBase.jl.svg?branch=master)](https://travis-ci.org/JuliaStats/StatsBase.jl)
10+
[![Build status](https://ci.appveyor.com/api/projects/status/fsut3j3onulvws1w?svg=true)](https://ci.appveyor.com/project/nalimilan/statsbase-jl)
11+
[![Coverage Status](https://coveralls.io/repos/JuliaStats/StatsBase.jl/badge.svg?branch=master)](https://coveralls.io/r/JuliaStats/StatsBase.jl?branch=master)
12+
[![Coverage Status](http://codecov.io/github/JuliaStats/StatsBase.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaStats/StatsBase.jl?branch=master)
13+
14+
- **Documentation**: [![][docs-stable-img]][docs-stable-url] [![][docs-latest-img]][docs-latest-url]
15+
16+
[docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg
17+
[docs-latest-url]: http://JuliaStats.github.io/StatsBase.jl/latest/
18+
19+
[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg
20+
[docs-stable-url]: http://JuliaStats.github.io/StatsBase.jl/stable/

appveyor.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
environment:
2+
matrix:
3+
- julia_version: 0.7
4+
- julia_version: 1.0
5+
- julia_version: nightly
6+
7+
platform:
8+
- x86 # 32-bit
9+
- x64 # 64-bit
10+
11+
# Uncomment the following lines to allow failures on nightly julia
12+
# (tests will run but not make your overall status red)
13+
matrix:
14+
allow_failures:
15+
- julia_version: nightly
16+
17+
branches:
18+
only:
19+
- master
20+
- /release-.*/
21+
22+
notifications:
23+
- provider: Email
24+
on_build_success: false
25+
on_build_failure: false
26+
on_build_status_changed: false
27+
28+
install:
29+
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))
30+
31+
build_script:
32+
- echo "%JL_BUILD_SCRIPT%"
33+
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"
34+
35+
test_script:
36+
- echo "%JL_TEST_SCRIPT%"
37+
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"

docs/Project.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
4+
[compat]
5+
Documenter = "~0.22"

docs/make.jl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using Documenter, StatsBase, Statistics, Random
2+
3+
# Workaround for JuliaLang/julia/pull/28625
4+
if Base.HOME_PROJECT[] !== nothing
5+
Base.HOME_PROJECT[] = abspath(Base.HOME_PROJECT[])
6+
end
7+
8+
makedocs(
9+
sitename = "StatsBase.jl",
10+
modules = [StatsBase],
11+
pages = ["index.md",
12+
"weights.md",
13+
"means.md",
14+
"scalarstats.md",
15+
"robust.md",
16+
"deviation.md",
17+
"cov.md",
18+
"counts.md",
19+
"ranking.md",
20+
"sampling.md",
21+
"empirical.md",
22+
"signalcorr.md",
23+
"multivariate.md",
24+
"misc.md",
25+
"statmodels.md",
26+
"transformations.md"]
27+
)
28+
29+
deploydocs(
30+
repo = "github.com/JuliaStats/StatsBase.jl.git"
31+
)

docs/src/assets/logo.png

41.2 KB
Loading

docs/src/counts.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Counting Functions
2+
3+
The package provides functions to count the occurrences of distinct values.
4+
5+
## Counting over an Integer Range
6+
7+
```@docs
8+
counts
9+
proportions
10+
addcounts!(r::AbstractArray, x::StatsBase.IntegerArray, levels::StatsBase.IntUnitRange)
11+
```
12+
13+
## Counting over arbitrary distinct values
14+
15+
```@docs
16+
countmap
17+
proportionmap
18+
addcounts!{T}(cm::Dict{T}, x::AbstractArray{T})
19+
```

docs/src/cov.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Scatter Matrix and Covariance
2+
3+
This package implements functions for computing scatter matrix, as well as weighted covariance matrix.
4+
5+
```@docs
6+
scattermat
7+
cov
8+
cov(::CovarianceEstimator, ::AbstractVector)
9+
cov(::CovarianceEstimator, ::AbstractVector, ::AbstractVector)
10+
cov(::CovarianceEstimator, ::AbstractMatrix)
11+
cor
12+
mean_and_cov
13+
cov2cor
14+
cor2cov
15+
CovarianceEstimator
16+
SimpleCovariance
17+
```

0 commit comments

Comments
 (0)