Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import StatsBase into Statistics #2

Draft
wants to merge 349 commits into
base: StatsBase2021
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
349 commits
Select commit Hold shift + click to select a range
7cb4186
new API for function cov
lindahua Mar 29, 2014
e3792ea
new API for cor
lindahua Mar 29, 2014
fd54347
mean keyword argument for var and std
lindahua Mar 29, 2014
a61786e
minor adjustment of API for cov and cor
lindahua Mar 29, 2014
f1a3edd
minor adjustment of API for cov
lindahua Mar 29, 2014
d19a486
eliminate StoredArray (fix #6212, #987); UniformScaling is no longer …
stevengj Mar 24, 2014
d658de2
nearly finish OrdinalRange
JeffBezanson Mar 19, 2014
7be886b
allow constructing StepRange by length
JeffBezanson Mar 20, 2014
e9cb9d2
Fix logic errors in `hist`
ivarne Apr 8, 2014
f1479ba
Make histrange us the extrema function
ivarne Apr 8, 2014
b466c30
Change @test_throws to only check for a single exception type
staticfloat Apr 9, 2014
bd5f77e
Change syntax to @test_throws ExceptionType Expression
staticfloat Apr 10, 2014
8789200
Add generic var and std for iterables, fix #6544
IainNZ Apr 16, 2014
0c528b6
Fix type stability
IainNZ Apr 17, 2014
676c3c9
Median along arbitrary dimensions, fixes #6648
cbecker Apr 27, 2014
0a2998b
Return NaN for median of vectors containing NaN. Closes #6486
simonster May 12, 2014
098503b
Faster implementation of var across dimensions
simonster May 22, 2014
376103f
Use BLAS for pairwise sumabs2 when possible
simonster May 26, 2014
d4214cd
Rename varzm_pairwise -> sumabs2_pairwise
simonster May 26, 2014
e03b998
New sumabs2 to replace the original one in statistics.jl
lindahua May 28, 2014
a8afe0d
Tweaks to sum across dimensions
simonster May 29, 2014
e7db9cc
cosmetic changes to base/statistics.jl (prepare for further refactoring)
lindahua Jun 7, 2014
12deec6
Better implementation of varzm
lindahua Jun 9, 2014
a3c6bf8
Implement varm using centralize_sumabs2
lindahua Jun 9, 2014
215de7c
add `@inbounds` to sqrt!
lindahua Jun 9, 2014
b2b465c
clean up the variable naming for mean functions
lindahua Jun 9, 2014
4489d8d
Clean up parameter naming for var, std, and friends
lindahua Jun 10, 2014
13e0e5c
Tweaked implementation of median (fixes #7331)
lindahua Jun 20, 2014
9d846f8
tweaked middle to ensure middle(x) and middle(x, x) have the same typ…
lindahua Jun 20, 2014
374670b
Simplify implementation of centralize_sumabs2
simonster Jul 1, 2014
2c25f95
Fix and test var edge cases for zero and one-element iterables
simonster Jul 2, 2014
bd1db0f
Fix and test type stability of var
simonster Jul 3, 2014
ece2928
make vcats explicit
nolta Jan 8, 2014
d2314a1
Avoid `Real` overflow in `middle`
Aug 21, 2014
9e40544
make [] give an Any array
JeffBezanson Sep 26, 2014
5ccaf74
rebase on top of latest master
jakebolewski Oct 6, 2014
388bc83
Remove checknan option to median and update docs
simonster Oct 7, 2014
3370687
remove `evaluate` function for functor types
jakebolewski Oct 23, 2014
c25fdc1
rename Uint => UInt (closes #8905)
StefanKarpinski Nov 5, 2014
0d2e1ae
remove trailing ws from repo
jakebolewski Nov 6, 2014
a4db571
Document return type for middle(x)
nalimilan Nov 16, 2014
a7d2ff9
itrunc -> trunc, etc, improve iround
simonbyrne Nov 23, 2014
9681069
Merge pull request #8077 from kshramt/kshramt/overflow
JeffBezanson Dec 8, 2014
6b8baf6
Try and remove as many generic error() messages from base as possible
jakebolewski Jan 14, 2015
788e4d9
Add mapreducedim for DArrays.
andreasnoack Jan 27, 2015
0fc2961
give a better error message ofor invalid input to histrange
jakebolewski Feb 1, 2015
05bffb2
Use stagedfunctions instead of @ngenerate and @nsplat
timholy Nov 20, 2014
9e444f7
Merge branch 'master' into jcb/sanecat
JeffBezanson Feb 9, 2015
509474c
Merge pull request #9884 from JuliaLang/anj/darrayops
andreasnoack Feb 10, 2015
eab924e
TST add some tests for some previously untested methods
hayd Jan 8, 2015
19e5c97
begin removing lowercase conversion functions (#1470)
JeffBezanson Mar 8, 2015
b58f273
finish removing/renaming lowercase conversions
JeffBezanson Mar 9, 2015
ff9a017
fix typo check_reducdim -> check_reducedim in statistics
jakebolewski Mar 10, 2015
24e8aa2
Faster and more general reductions for sparse matrices
simonster Mar 16, 2015
6870d73
Change `i=1:length(A)` to `i in eachindex(A)`
timholy Apr 17, 2015
41258ac
Rename stagedfunction → @generated function
mbauman Apr 18, 2015
9b6e66b
adds_license_headers [skip ci]
May 1, 2015
cb59ab6
replace Union( ) with Union{ } everywhere
JeffBezanson Jun 15, 2015
e6ae011
Test cases for mean handling NaN
juliangehring Jul 6, 2015
086d939
General test cases for mean
juliangehring Jul 6, 2015
2f4b6ea
updated median docs and made more compute efficient
bjarthur Jul 14, 2015
b8a48ca
rename: FloatingPoint => AbstractFloat
StefanKarpinski Jul 15, 2015
d24ebb3
Tests for statistics
kshyatt Jul 30, 2015
34387fb
Merge pull request #12379 from JuliaLang/ksh/statstests
kshyatt Jul 31, 2015
79d789a
use === for comparison to nothing
stevengj Aug 3, 2015
991b30d
fix symdiff!,middle,quantile,collect docstrings
nolta Sep 2, 2015
d30c289
A variety of tests (error throwing)
kshyatt Sep 7, 2015
1e914d7
fix #13309: return correct real value from var, varm, etc of complex …
stevengj Sep 28, 2015
6ea69a9
avoid overflow in histrange, fixes #13326
simonbyrne Sep 30, 2015
64998b3
Make cov and cor similar to mean and var by removing keyword arguments.
andreasnoack Oct 6, 2015
a10205d
A few fixes of the deprecations of the keyword versions of cov and cor.
andreasnoack Oct 9, 2015
ffd742d
Remove `atdoc_str` from inline docs and reformat.
MichaelHatherly Dec 10, 2015
972adc3
improve quantile: reduce allocations, use partial sort
simonbyrne Dec 16, 2015
5523ce3
fix uses of deprecated syntax in Base
JeffBezanson Feb 1, 2016
1398f84
more general indexes (2)
dfdx Mar 19, 2016
9b3d0eb
Remove some excess empty lines
tkelman Mar 25, 2016
f0730bf
Deprecate binary functors
martinholters Apr 6, 2016
0c83902
Remove/deprecate special purpose functors and move Predicate to reduc…
martinholters Apr 14, 2016
98244c7
Fixes numerical accuracy issues in quantile.
simonbyrne May 25, 2016
b1ad540
Replace deprecated Array(T..., dims...) with Array{T...}(dims...) in …
pkofod May 25, 2016
ec04e7f
Merge pull request #16572 from JuliaLang/sb/quantile-acc
andreasnoack May 26, 2016
8133f61
deprecate histogram functionality (#16450)
simonbyrne May 27, 2016
7553f17
fix two more cases where a mutable copy was needed
stevengj May 27, 2016
90c2ca9
consolidate copy!(similar(a),a) method into copymutable(a)
stevengj May 27, 2016
68fe75a
remove varzm functions
vtjnash Jun 7, 2016
6bc93e7
RFC: Function argument to `mean`, akin to `sum` (#16691)
ararslan Jun 8, 2016
0f124f5
Merge pull request #16764 from JuliaLang/jn/notequal
vtjnash Jun 8, 2016
291988c
Fix the majority of # fixme iter labels
timholy Jun 7, 2016
eb37579
shapeinfo->shape, linindices->linearindices, and add core API to exports
timholy Jun 12, 2016
04cb1b6
Make `median` non-mutating on arrays.
simonbyrne Jun 27, 2016
dbeae07
replace `@test_approx_eq` with ≈ (#17151)
StefanKarpinski Jun 28, 2016
457158b
Merge pull request #17154 from JuliaLang/sb/median-slice
JeffBezanson Jun 28, 2016
0e97f90
Prevent mapslices from mutating the original array
timholy Jul 4, 2016
2392182
Avoid that cor(x,x) != 1 by trading a sqrt for two / and use clamp to
andreasnoack Jul 15, 2016
360c190
Make `size` throw an error for arrays with non-1 indexing
timholy Jul 15, 2016
489f828
unsafe_length(A) -> _length(A)
timholy Jul 18, 2016
c5460f1
reductions & broadcast: allow any dimension of size 1 (no specific in…
timholy Jul 18, 2016
6cc44c5
Add test for Issue #17153 and PR #17154 (#17164)
ranjanan Jul 18, 2016
8fcd671
Merge pull request #17228 from JuliaLang/teh/safe_size_length
timholy Jul 19, 2016
9ee81e0
Change Array(Type, ...) to Array{Type}(...)
ararslan Jul 23, 2016
c913663
Fixed per Jameson's comments
ararslan Jul 23, 2016
45ba811
Merge pull request #17464 from JuliaLang/anj/covzm
simonbyrne Jul 25, 2016
7c7eafd
a bit more fixes for correlation + tests
maximsch2 Jul 25, 2016
c66fd1e
Operations between Float16 and Integer now return Float16
vchuravy Jul 6, 2016
e14b5fe
Move math docs out of HelpDB, more examples, fix typos (#17791)
kshyatt Aug 5, 2016
7a3e407
Merge pull request #17297 from JuliaGPU/vc/fp16
tkelman Aug 6, 2016
443e22f
Moved so many docs out of HelpDB. More examples.
kshyatt Aug 15, 2016
cc74c86
Moved docstrings to deal with aliasing
kshyatt Aug 23, 2016
05ed4a1
Deprecate vectorized functions in base/math.jl in favor of compact br…
Sacha0 Jul 5, 2016
699eeb5
Generalize broadcast to handle tuples and scalars (#16986)
pabloferz Sep 18, 2016
920ca67
Fix statistics functions for non-1 indices
timholy Oct 23, 2016
5be1294
Deprecate sumabs, sumabs2, minabs, maxabs
ararslan Dec 15, 2016
6aea70f
RFC:add functionality for quantiles of vectors of infinity (#19574)
alexhallam Dec 19, 2016
c56d7b2
Quantiles of vector of infinities (#19659)
alexhallam Jan 3, 2017
0a81bb0
Move docs inline from helpdb/Base.jl (#19674)
xorJane Jan 4, 2017
8c886b7
Replace all use of invoke to use Tuple arguments
yuyichao Sep 10, 2016
9bdd628
Move the deprecation of midpoints to 0.6 section, (#20058)
tkelman Jan 17, 2017
b195f68
WIP: add oneunit(x) for dimensionful version of one(x) (#20268)
stevengj Feb 6, 2017
62e6683
Use compact parametric syntax in base/s*.jl
pabloferz Feb 5, 2017
f406a22
grabbag of doctests (#20491)
KristofferC Feb 10, 2017
479e3bb
RFC: tests for dimensional correctness of Base (#20484)
stevengj Feb 11, 2017
945def4
Allow quantile function to accept tuples
simonster Mar 6, 2017
7df1edc
Document that `p` can be a tuple
simonster Mar 7, 2017
1b023a0
Minor update to the docstring wording for clarity
ararslan Mar 7, 2017
8981f7c
Make cor work again for complex input (#21205)
simonster Mar 30, 2017
4bc3179
Change all julialang.org links to https
tkelman Apr 21, 2017
cbfc3be
Use new where syntax in misc files (#21428)
musm Apr 21, 2017
dd24a02
Merge pull request #21472 from JuliaLang/tk/https-links
tkelman Apr 22, 2017
853c512
Merge pull request #20921 from JuliaLang/sjk/quantile
simonster May 2, 2017
52f9fca
[ci skip] Replace visually confusing asterisks
omus May 4, 2017
8520c76
use where syntax in most remaining files (#22211)
rfourquet Jun 5, 2017
da01601
Make `cov`'s corrected argument a keyword argument and cleanup docstr…
nalimilan Jun 27, 2017
dd55188
disallow unrecognized string/char escapes (closes #21284)
stevengj Jul 13, 2017
3c67114
Make var(Range) type stable (#22778)
andreasnoack Jul 17, 2017
b039c17
Move a doc out, add doctests to some things
kshyatt Jul 18, 2017
784e272
Remove momenttype and use reduction initialization infrastructure (#2…
andreasnoack Jul 25, 2017
d707adc
Add tests for mean and var on arrays with unitful elements. (#22956)
andreasnoack Jul 26, 2017
5219332
Fix promotion in cov and mean to handle integer and rational matrices…
andreasnoack Aug 18, 2017
21d9e28
Fix bug introduced in #23285 for means along dimensions of empty arra…
andreasnoack Aug 22, 2017
74d131f
Rename select* functions to partialsort*
nalimilan Jul 31, 2017
e993ba1
Rename Range to AbstractRange (#23570)
nalimilan Sep 8, 2017
dc404ed
Deprecate `+`/`-` methods for `array+scalar` etc (#22932)
andyferris Sep 12, 2017
5147e68
update code and tests to limit false global sharing (#23631)
vtjnash Sep 14, 2017
b2efe8f
fix #17997, don't load packages in `Main` (#23579)
JeffBezanson Sep 20, 2017
26c8630
move Test from Base to stdlib
JeffBezanson Sep 26, 2017
fce4b65
Make var and std work for Vector{Vector{T}} (#23897)
andreasnoack Oct 2, 2017
3942d2d
Replace a few previously missed Array(shape...)-like calls.
Sacha0 Nov 28, 2017
6618a33
Testsets for test/statistics
kshyatt Sep 23, 2017
c496dcc
Rewrite A[ct]_(mul|ldiv|rdiv)_B[ct][!] calls in base/statistics.jl as…
Sacha0 Dec 11, 2017
737e08d
Merge pull request #24969 from Sacha0/lazyjazz
Sacha0 Dec 12, 2017
27b9f63
rename Complex{32,64,128} to ComplexF{16,32,64}
rfourquet Nov 18, 2017
2d45470
Rename `indices` as `axes`
Dec 13, 2017
1dd8b15
Replace Nullable{T} with Union{T, Void} or Union{Some{T}, Void} (#23…
nalimilan Dec 15, 2017
a07a12c
Make CartesianRange an AbstractArray and deprecate sub2ind and ind2su…
timholy Dec 16, 2017
d83a0bc
rename some copy! methods to copyto! (#24808)
rfourquet Dec 17, 2017
55aaace
Rewrite isolated ' calls in base/ to preserve behavior through ' lowe…
Sacha0 Dec 16, 2017
ee521f9
Rewrite isolated ' calls in test/ to preserve behavior through ' lowe…
Sacha0 Dec 17, 2017
6ab2778
deprecate convert-to-construct fallback
JeffBezanson Sep 7, 2017
6a24dde
make `using A.B` only for modules, `using A: B` only for single bindi…
JeffBezanson Dec 29, 2017
ccc1e7c
Correct return type for `std` along region (#25304)
omus Jan 2, 2018
7269f07
Replace collect with (Vector|Matrix|Array) in test/.
Sacha0 Jan 7, 2018
335f146
Remove unnecesary collect/Vector/Array calls.
Sacha0 Jan 7, 2018
0d285a4
Make adjoint/transpose lazy with copy for materialization.
Sacha0 Dec 27, 2017
a5dd422
Replace Adjoint/Transpose with adjoint/transpose throughout base/.
Sacha0 Jan 4, 2018
44b260e
Merge pull request #25450 from Sacha0/decollect
Sacha0 Jan 10, 2018
3ea9ea4
move Random to stdlib (#24874)
rfourquet Jan 15, 2018
649c64a
move Base.LinAlg to LinearAlgebra stdlib
fredrikekre Jan 17, 2018
a7763bd
Pkg3-style code loading, DEPOT_PATH, tests
StefanKarpinski Jan 17, 2018
96973b3
Make mean() fallback method use the same type as sum() for accumulation
nalimilan Jan 25, 2018
c39a396
Replace mentions of DataArrays with references to missing and skipmis…
nalimilan Jan 25, 2018
8fb8fdc
remove some exports from Core and Base (#25802)
JeffBezanson Feb 6, 2018
003b18f
update doc string syntax (#25938)
JeffBezanson Feb 9, 2018
c18a3a4
absorb `repmat` into `repeat` and deprecate it (#26039)
JeffBezanson Feb 14, 2018
8afb3ca
Deprecate linspace in favor of range methods
ararslan Feb 13, 2018
e2f0d14
make `dims` (previously sometimes called `region`) a keyword argument…
JeffBezanson Feb 23, 2018
e929551
Fix std(::AbstractArray{<:AbstractFloat}) (#26186)
mbauman Feb 24, 2018
383ec6a
rename uninitialized to undef (#26316)
KristofferC Mar 10, 2018
561489d
Customizable lazy fused broadcasting in pure Julia
mbauman Apr 23, 2018
eee4af3
Deprecate linearindices in favor of LinearIndices (#26775)
nalimilan May 8, 2018
8b2681d
Change iteration protocol
Keno Dec 22, 2017
60268b3
move cor, cov, std, stdm, var, varm and linreg to StatsBase (#27152)
fredrikekre May 28, 2018
451e6c4
use offset axes for offset arrays (#27038)
mbauman May 29, 2018
8e8d76e
comparison against nothing should use `egal`
vtjnash May 29, 2018
6c0bc9a
make `dims` argument to `mapslices` a keyword arg (#27828)
JeffBezanson Jun 28, 2018
00376d5
Revert "move cor, cov, std, stdm, var, varm and linreg to StatsBase (…
fredrikekre Jun 27, 2018
1a0beff
move base/statistics.jl to Statistics stdlib
fredrikekre Jun 27, 2018
77f5404
Fix handling of missing values in median and quantile and improve docs
nalimilan Jun 30, 2018
654e21a
Improve docstrings and tests for std[m], var[m] about missing values
nalimilan Jun 30, 2018
212a346
Qualify call to `mapreduce_impl` in `Statistics` with `Base` (#27903)
martinholters Jul 3, 2018
6d8c673
Test: unexport guardsrand (#27942)
rfourquet Jul 7, 2018
5bef859
Rename indices1->axes1
timholy Jul 5, 2018
afc5bd2
Remove the "experimental" status from non-1 indexing
timholy Dec 3, 2017
b9a8b9c
Deprecate _length in favor of length
timholy Jul 6, 2018
246364c
split out TestHelpers into separate parts (#28292)
KristofferC Jul 27, 2018
a7c460d
fixup Project files to new Project format
KristofferC Jul 27, 2018
a368014
Rename realmin/max -> floatmin/max (#28302)
Keno Jul 28, 2018
31ed096
Rename srand to Random.seed! (#28295)
Jul 29, 2018
ca3e6f3
Remove many stdlib deprecations (#28450)
fredrikekre Aug 6, 2018
c33c5a5
fix doc-string references to bit-rotted variables x(->v) and v(->itr)…
thchr Aug 23, 2018
923ca0d
Fix quantile doctest formatting (#29573)
bovine3dom Oct 9, 2018
7d1f90f
Add handling of an empty iterator for mean and var (#29033)
bkamins Oct 11, 2018
8fc4105
remove some `::Callable` argument restrictions no longer necessary (#…
JeffBezanson Oct 19, 2018
32116d7
Make median! type stable for small float types (#29902)
andreasnoack Nov 5, 2018
35c29cd
Compat admonitions and NEWS for Julia 1.1 (#30230)
fredrikekre Dec 5, 2018
cec2fb5
Statistics: add a large float test for cov (#30660)
iblislin Jan 12, 2019
79d6c78
audit all `assert !has_offset_axes(...)` in stdlib
aaronlws95 Jan 12, 2019
8758872
Improve docstrings for std and var (#31200)
nalimilan Mar 1, 2019
dc5475c
Improve quantile in corner cases of collection eltype (#30938)
bkamins Apr 1, 2019
0a7d322
Overload mean to take a function alongwith a dimension (#31576)
eulerkochy Apr 16, 2019
cbffde4
test quantile (#31994)
kshyatt May 22, 2019
90ccfc0
Add missing test dependency on Random to Statistics (#32383)
ararslan Jun 22, 2019
a933c5d
[Statistics] fix type determination in corm (#32271)
dkarrasch Jul 24, 2019
564dbfb
Add docstest=only option to docs/make.jl (#32376)
mortenpi Aug 1, 2019
db8a502
Add tests for `mean` of iterables (#32949)
goggle Aug 19, 2019
95376f7
Add note about using Statistics in docs. (#32897)
logankilpatrick Aug 19, 2019
52d139c
Refactoring: Use accessor methods when manipulating sparse matrices/v…
tkf Aug 22, 2019
dfaf174
Use nzrange in Statistics (#33037)
tkf Aug 23, 2019
a2203d3
Move stdlib/Statistics to repo root
nalimilan Sep 18, 2019
da6057b
Add LICENSE.md
nalimilan Sep 18, 2019
81cc540
Enable Travis CI and build documentation (#21)
nalimilan Feb 3, 2020
542f57e
added quantile estimator with parameters alpha and beta (#20)
lungben Feb 14, 2020
97c743d
Solve the overflow in mean() on integers by promoting accumulator (#25)
kagalenko-m-b Apr 14, 2020
a87c385
Add missing shape checks for the means argument to var[m] and std[m] …
nalimilan Apr 28, 2020
5811fba
Fix typo in docstring for var (#35)
briochemc May 6, 2020
b416906
Force specialization for _mean's dims argument (#38)
mbauman May 12, 2020
42f4609
remove test for empty tuple for mean (#36)
KristofferC May 15, 2020
4069cd5
Test mean of empty Union{}-eltyped collections (#40)
tkf May 27, 2020
81a1cdd
Fix spelling error in var doc string (#19)
georgh May 28, 2020
cde87c8
Fix bug in quantile for case of 1 element vector (#42)
bkamins Jun 5, 2020
b384104
Update doctests for Julia 1.6 (#44)
vtjnash Jun 27, 2020
327eed8
Add a README with instructions for developing the package locally (#55)
DilumAluthge Oct 7, 2020
2439cc9
relax type definition of middle (#28)
tlnagy Oct 8, 2020
4b3ef9a
README: Add the Travis CI status badge (#56)
DilumAluthge Oct 9, 2020
7a0c0d1
Clarify "IID" (#58)
BioTurboNick Dec 19, 2020
05f09fe
Delete .travis.yml
nalimilan Jan 3, 2021
698530b
Add GitHub action for CI (#62)
nalimilan Jan 3, 2021
ba90d86
Fix CI (#64)
nalimilan Jan 3, 2021
7b56a27
In var, don't compute the mean if provided (#68)
knuesel Jan 22, 2021
27a63ae
change real to float in cor of a single collection (#61)
bkamins Feb 13, 2021
862798b
Fix CI badge
nalimilan Feb 13, 2021
fadeeee
fix handling of Missing in cor (#74)
bkamins Feb 19, 2021
55d93f7
Fix NaN and missing detection in quantile() (#72)
nalimilan Mar 24, 2021
ba24318
Fix detection of NaN in median() (#73)
nalimilan Mar 24, 2021
54f9b0d
CI: Standardize the workflow for testing and changing the UUID (#78)
DilumAluthge Jun 7, 2021
1e5d2a8
Merge branch 'master' into StatsBase2021
nalimilan Sep 25, 2021
f6a3ef3
Merge StatsBase into Statistics
nalimilan Sep 26, 2021
686b831
Cleanup of weights to reduce diff
nalimilan Sep 26, 2021
9e4910d
Transformations
nalimilan Sep 26, 2021
8066ab2
Reliability
nalimilan Sep 26, 2021
020a810
Sampling
nalimilan Sep 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .ci/test_and_change_uuid.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@static if Base.VERSION >= v"1.6"
using TOML
using Test
else
using Pkg: TOML
using Test
end

# To generate the new UUID, we simply modify the first character of the original UUID
const original_uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
const new_uuid = "20745b16-79ce-11e8-11f9-7d13ad32a3b2"

# `@__DIR__` is the `.ci/` folder.
# Therefore, `dirname(@__DIR__)` is the repository root.
const project_filename = joinpath(dirname(@__DIR__), "Project.toml")

@testset "Test that the UUID is unchanged" begin
project_dict = TOML.parsefile(project_filename)
@test project_dict["uuid"] == original_uuid
end

write(
project_filename,
replace(
read(project_filename, String),
r"uuid = .*?\n" => "uuid = \"$(new_uuid)\"\n",
),
)
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
fail-fast: false
matrix:
version:
- '1.0'
- '1' # automatically expands to the latest stable 1.x release of Julia
- 'nightly'
os:
Expand Down Expand Up @@ -41,6 +40,7 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- run: julia --color=yes .ci/test_and_change_uuid.jl
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
Expand Down
7 changes: 4 additions & 3 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
StatsBase.jl is licensed under the MIT License:
Statistics.jl is licensed under the MIT License:

> Copyright (c) 2012-2016: Dahua Lin, Simon Byrne, Andreas Noack,
> Douglas Bates, John Myles White, Simon Kornblith, and other contributors.
> Copyright (c) 2012-2016: Jeff Bezanson, Stefan Karpinski, Viral B. Shah,
> Dahua Lin, Simon Byrne, Andreas Noack, Douglas Bates, John Myles White,
> Simon Kornblith, and other contributors.

> Permission is hereby granted, free of charge, to any person obtaining
> a copy of this software and associated documentation files (the
Expand Down
26 changes: 4 additions & 22 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,33 +1,15 @@
name = "StatsBase"
uuid = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
authors = ["JuliaStats"]
version = "0.33.10"
name = "Statistics"
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[deps]
DataAPI = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Missings = "e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SortingAlgorithms = "a2af1166-a08f-5f64-846c-94a0d3cef48c"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
StatsAPI = "82ae8749-77ed-4fe6-ae5f-f523153014b0"

[compat]
DataAPI = "1"
DataStructures = "0.10, 0.11, 0.12, 0.13, 0.14, 0.17, 0.18"
Missings = "0.3, 0.4, 1.0"
SortingAlgorithms = "0.3, 1.0"
StatsAPI = "1"
julia = "1"

[extras]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Dates", "DelimitedFiles", "StableRNGs", "Test"]
test = ["Dates", "Random", "Test"]
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
## StatsBase.jl
# Statistics.jl

*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.
[![Build status](https://github.com/JuliaLang/Statistics.jl/workflows/CI/badge.svg)](https://github.com/JuliaLang/Statistics.jl/actions?query=workflow%3ACI+branch%3Amaster)

- **Build & Testing Status:**
[![Build status](https://github.com/JuliaStats/StatsBase.jl/workflows/CI/badge.svg)](https://github.com/JuliaStats/StatsBase.jl/actions?query=workflow%3ACI+branch%3Amaster)
[![Coverage Status](https://coveralls.io/repos/JuliaStats/StatsBase.jl/badge.svg?branch=master)](https://coveralls.io/r/JuliaStats/StatsBase.jl?branch=master)
[![Coverage Status](http://codecov.io/github/JuliaStats/StatsBase.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaStats/StatsBase.jl?branch=master)
Development repository for the Statistics standard library (stdlib) that ships with Julia.

- **Documentation**: [![][docs-stable-img]][docs-stable-url] [![][docs-latest-img]][docs-latest-url]
#### Using the development version of Statistics.jl

[docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg
[docs-latest-url]: http://JuliaStats.github.io/StatsBase.jl/latest/
If you want to develop this package, do the following steps:
- Clone the repo anywhere.
- In line 2 of the `Project.toml` file (the line that begins with `uuid = ...`), modify the UUID, e.g. change the `107` to `207`.
- Change the current directory to the Statistics repo you just cloned and start julia with `julia --project`.
- `import Statistics` will now load the files in the cloned repo instead of the Statistics stdlib.
- To test your changes, simply do `include("test/runtests.jl")`.

[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg
[docs-stable-url]: http://JuliaStats.github.io/StatsBase.jl/stable/
If you need to build Julia from source with a git checkout of Statistics, then instead use `make DEPS_GIT=Statistics` when building Julia. The `Statistics` repo is in `stdlib/Statistics`, and created initially with a detached `HEAD`. If you're doing this from a pre-existing Julia repository, you may need to `make clean` beforehand.
3 changes: 1 addition & 2 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"

[compat]
Documenter = "0.24"
Documenter = "0.27"
24 changes: 8 additions & 16 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,32 +1,24 @@
using Documenter, StatsBase, Statistics, Random, LinearAlgebra
using Documenter, Statistics, Random

# Workaround for JuliaLang/julia/pull/28625
if Base.HOME_PROJECT[] !== nothing
Base.HOME_PROJECT[] = abspath(Base.HOME_PROJECT[])
end

makedocs(
sitename = "StatsBase.jl",
modules = [StatsBase],
sitename = "Statistics.jl",
modules = [Statistics],
pages = ["index.md",
"weights.md",
"scalarstats.md",
"robust.md",
"deviation.md",
"cov.md",
"counts.md",
"robust.md",
"ranking.md",
"sampling.md",
"empirical.md",
"signalcorr.md",
"multivariate.md",
"misc.md",
"statmodels.md",
"transformations.md"],
strict=true,
checkdocs=:exports
"transformations.md",
"sampling.md"]
)

deploydocs(
repo = "github.com/JuliaStats/StatsBase.jl.git"
)
repo = "github.com/JuliaLang/Statistics.jl.git"
)
19 changes: 0 additions & 19 deletions docs/src/counts.md

This file was deleted.

43 changes: 36 additions & 7 deletions docs/src/cov.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,46 @@
# Scatter Matrix and Covariance
# Covariances and Correlations

This package implements functions for computing scatter matrix, as well as weighted covariance matrix.
Functions to computing various types of covariances and correlations are provided.

## Covariance, Correlation and Scatter Matrix

```@docs
scattermat
cov
cov(::CovarianceEstimator, ::AbstractVector)
cov(::CovarianceEstimator, ::AbstractVector, ::AbstractVector)
cov(::CovarianceEstimator, ::AbstractMatrix)
cor
mean_and_cov
scattermat
cov2cor
cor2cov
CovarianceEstimator
SimpleCovariance
```

## Partial Correlation

```@docs
partialcor
```

## Autocovariance and Autocorrelation

```@docs
autocov
autocov!
autocor
autocor!
```

## Cross-covariance and Cross-correlation

```@docs
crosscov
crosscov!
crosscor
crosscor!
```

## Partial Autocorrelation Function

```@docs
pacf
pacf!
```
24 changes: 0 additions & 24 deletions docs/src/deviation.md

This file was deleted.

8 changes: 5 additions & 3 deletions docs/src/empirical.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Empirical Estimation
# Empirical Estimation of Distributions

## Histograms

Expand All @@ -16,9 +16,11 @@ Additional methods
```@docs
merge!
merge
midpoints
norm
normalize
normalize!
normalize(h::Histogram{T,N}) where {T<:AbstractFloat,N}
normalize(h::Histogram{T,N}, aux_weights::Array{T,N}...) where {T<:AbstractFloat,N}
normalize!(h::Histogram{T,N}, aux_weights::Array{T,N}...) where {T<:AbstractFloat,N}
zero
```

Expand Down
19 changes: 8 additions & 11 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
# StatsBase.jl Documentation
# Statistics

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

*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.

The Statistics module contains basic statistics functionality: mean, median, quantiles,
standard deviation, variance, skewness, kurtosis, correlation and covariance.
Statistics can be weighted, and several weights types are distinguished to apply appropriate
corrections where necessary.

```@contents
Pages = ["weights.md", "scalarstats.md", "robust.md", "deviation.md", "cov.md", "counts.md", "ranking.md", "sampling.md", "empirical.md", "signalcorr.md", "misc.md", "statmodels.md", "transformations.md"]
Pages = ["weights.md", "scalarstats.md", "cov.md", "robust.md", "ranking.jl",
"empirical.md", "transformations.md", "sampling.md"]
Depth = 2
```


12 changes: 0 additions & 12 deletions docs/src/misc.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/src/multivariate.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/src/ranking.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Rankings and Rank Correlations

This package implements various strategies for computing ranks and rank correlations.
Various strategies for computing ranks and rank correlations are provided.

```@docs
ordinalrank
Expand Down
Loading