Skip to content

Commit 15333a9

Browse files
authored
Merge branch 'master' into loglogistic_distribution
2 parents 025c8a8 + bbdd4f1 commit 15333a9

File tree

134 files changed

+2406
-843
lines changed

Some content is hidden

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

134 files changed

+2406
-843
lines changed

.github/workflows/CI.yml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: CI
22

33
on:
44
pull_request:
5-
branches:
6-
- master
75
push:
86
branches:
97
- master
108
tags: '*'
9+
workflow_dispatch:
10+
merge_group:
1111

1212
concurrency:
1313
# Skip intermediate builds: always.
@@ -17,38 +17,26 @@ concurrency:
1717

1818
jobs:
1919
test:
20-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
20+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
2121
runs-on: ${{ matrix.os }}
22-
continue-on-error: ${{ matrix.version == 'nightly' }}
2322
strategy:
2423
fail-fast: false
2524
matrix:
2625
version:
27-
- '1.3'
26+
- 'min'
2827
- '1'
29-
- 'nightly'
28+
- pre
3029
os:
3130
- ubuntu-latest
3231
- macos-latest
3332
- windows-latest
34-
arch:
35-
- x64
3633
steps:
37-
- uses: actions/checkout@v3
38-
- uses: julia-actions/setup-julia@v1
34+
- uses: actions/checkout@v5
35+
- uses: julia-actions/setup-julia@v2
3936
with:
4037
version: ${{ matrix.version }}
41-
arch: ${{ matrix.arch }}
42-
- uses: actions/cache@v3
43-
env:
44-
cache-name: cache-artifacts
45-
with:
46-
path: ~/.julia/artifacts
47-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
48-
restore-keys: |
49-
${{ runner.os }}-test-${{ env.cache-name }}-
50-
${{ runner.os }}-test-
51-
${{ runner.os }}-
38+
show-versioninfo: true
39+
- uses: julia-actions/cache@v2
5240
- uses: julia-actions/julia-buildpkg@v1
5341
- uses: julia-actions/julia-runtest@v1
5442
- run: |
@@ -57,17 +45,20 @@ jobs:
5745
Pkg.instantiate()'
5846
- run: julia --project=perf perf/samplers.jl
5947
- uses: julia-actions/julia-processcoverage@v1
60-
- uses: codecov/codecov-action@v3
48+
- uses: codecov/codecov-action@v5
6149
with:
50+
token: ${{ secrets.CODECOV_TOKEN }} # required
51+
fail_ci_if_error: true
6252
files: lcov.info
6353
docs:
6454
name: Documentation
6555
runs-on: ubuntu-latest
6656
steps:
67-
- uses: actions/checkout@v3
68-
- uses: julia-actions/setup-julia@v1
57+
- uses: actions/checkout@v5
58+
- uses: julia-actions/setup-julia@v2
6959
with:
7060
version: '1'
61+
show-versioninfo: true
7162
- run: |
7263
julia --project=docs -e '
7364
using Pkg

.github/workflows/DocPreviewCleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout gh-pages branch
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v5
1313
with:
1414
ref: gh-pages
1515
- name: Delete preview and history + push changes

.github/workflows/IntegrationTest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
#- {user: TuringLang, repo: DistributionsAD.jl, group: ForwardDiff} takes > 1 hour
3232

3333
steps:
34-
- uses: actions/checkout@v3
35-
- uses: julia-actions/setup-julia@v1
34+
- uses: actions/checkout@v5
35+
- uses: julia-actions/setup-julia@v2
3636
with:
3737
version: 1
3838
arch: x64
3939
- uses: julia-actions/julia-buildpkg@latest
4040
- name: Clone Downstream
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@v5
4242
with:
4343
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
4444
path: downstream

Project.toml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name = "Distributions"
22
uuid = "31c24e10-a181-5473-b8eb-7969acd0382f"
33
authors = ["JuliaStats"]
4-
version = "0.25.100"
4+
version = "0.25.122"
55

66
[deps]
7+
AliasTables = "66dad0bd-aa9a-41b7-9441-69ab47430ed8"
78
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
89
DensityInterface = "b429d917-457f-4dbc-8f4c-0cc954292b1d"
910
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
@@ -22,24 +23,44 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2223
[weakdeps]
2324
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
2425
DensityInterface = "b429d917-457f-4dbc-8f4c-0cc954292b1d"
26+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2527

2628
[extensions]
2729
DistributionsChainRulesCoreExt = "ChainRulesCore"
2830
DistributionsDensityInterfaceExt = "DensityInterface"
31+
DistributionsTestExt = "Test"
2932

3033
[compat]
34+
AliasTables = "1"
35+
Aqua = "0.8.9"
36+
Calculus = "0.5"
3137
ChainRulesCore = "1"
38+
ChainRulesTestUtils = "1"
3239
DensityInterface = "0.4"
40+
Distributed = "<0.0.1, 1"
3341
FillArrays = "0.9, 0.10, 0.11, 0.12, 0.13, 1"
34-
PDMats = "0.10, 0.11"
42+
FiniteDifferences = "0.12"
43+
ForwardDiff = "0.10, 1"
44+
JSON = "0.21"
45+
LinearAlgebra = "<0.0.1, 1"
46+
OffsetArrays = "1"
47+
PDMats = "0.11.35"
48+
Printf = "<0.0.1, 1"
3549
QuadGK = "2"
50+
Random = "<0.0.1, 1"
51+
SparseArrays = "<0.0.1, 1"
3652
SpecialFunctions = "1.2, 2"
53+
StableRNGs = "1"
54+
StaticArrays = "1"
55+
Statistics = "1"
3756
StatsAPI = "1.6"
3857
StatsBase = "0.32, 0.33, 0.34"
3958
StatsFuns = "0.9.15, 1"
40-
julia = "1.3"
59+
Test = "<0.0.1, 1"
60+
julia = "1.10"
4161

4262
[extras]
63+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
4364
Calculus = "49dc2e85-a5d0-5ad3-a950-438e2897f1b9"
4465
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
4566
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
@@ -55,4 +76,4 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
5576
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
5677

5778
[targets]
58-
test = ["StableRNGs", "Calculus", "ChainRulesCore", "ChainRulesTestUtils", "DensityInterface", "Distributed", "FiniteDifferences", "ForwardDiff", "JSON", "SparseArrays", "StaticArrays", "Test", "OffsetArrays"]
79+
test = ["Aqua", "StableRNGs", "Calculus", "ChainRulesCore", "ChainRulesTestUtils", "DensityInterface", "Distributed", "FiniteDifferences", "ForwardDiff", "JSON", "SparseArrays", "StaticArrays", "Test", "OffsetArrays"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Distributions.jl
44
[![Build Status](https://github.com/JuliaStats/Distributions.jl/workflows/CI/badge.svg)](https://github.com/JuliaStats/Distributions.jl/actions)
55
[![](https://zenodo.org/badge/DOI/10.5281/zenodo.2647458.svg)](https://zenodo.org/record/2647458)
66
[![Coverage Status](https://coveralls.io/repos/JuliaStats/Distributions.jl/badge.svg?branch=master)](https://coveralls.io/r/JuliaStats/Distributions.jl?branch=master)
7+
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
78

89
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://JuliaStats.github.io/Distributions.jl/latest/)
910
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaStats.github.io/Distributions.jl/stable/)

docs/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
44
GR = "28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71"
55

66
[compat]
7-
Documenter = "0.26, 0.27"
8-
GR = "0.72.1"
7+
Documenter = "1"
8+
GR = "0.72.1, 0.73"

docs/make.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using Documenter, Distributions
22
import Random: AbstractRNG, rand!
33

4-
makedocs(
4+
makedocs(;
55
sitename = "Distributions.jl",
66
modules = [Distributions],
7-
format = Documenter.HTML(; prettyurls = get(ENV, "CI", nothing) == "true"),
7+
format = Documenter.HTML(; prettyurls = get(ENV, "CI", nothing) == "true",
8+
assets = ["assets/favicon.ico"]),
89
pages = [
910
"index.md",
1011
"starting.md",
@@ -17,16 +18,18 @@ makedocs(
1718
"reshape.md",
1819
"cholesky.md",
1920
"mixture.md",
21+
"product.md",
2022
"order_statistics.md",
2123
"convolution.md",
2224
"fit.md",
2325
"extends.md",
2426
"density_interface.md",
25-
]
27+
],
28+
warnonly = true,
2629
)
2730

2831
deploydocs(;
2932
repo = "github.com/JuliaStats/Distributions.jl.git",
3033
versions = ["stable" => "v^", "v#.#", "dev" => "master"],
31-
push_preview=true,
34+
push_preview = true,
3235
)

docs/src/assets/favicon.ico

195 KB
Binary file not shown.

docs/src/fit.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ The function `fit_mle` is for maximum likelihood estimation.
2727
### Synopsis
2828

2929
```@docs
30+
fit(D, x)
31+
fit(D, x, w)
3032
fit_mle(D, x)
3133
fit_mle(D, x, w)
3234
```

docs/src/multivariate.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ size(::MultivariateDistribution)
2121
eltype(::Type{MultivariateDistribution})
2222
mean(::MultivariateDistribution)
2323
var(::MultivariateDistribution)
24+
std(::MultivariateDistribution)
2425
cov(::MultivariateDistribution)
2526
cor(::MultivariateDistribution)
2627
entropy(::MultivariateDistribution)
@@ -55,9 +56,9 @@ Multinomial
5556
Distributions.AbstractMvNormal
5657
MvNormal
5758
MvNormalCanon
59+
MvLogitNormal
5860
MvLogNormal
5961
Dirichlet
60-
Product
6162
```
6263

6364
## Addition Methods
@@ -104,15 +105,6 @@ params{D<:Distributions.AbstractMvLogNormal}(::Type{D},m::AbstractVector,S::Abst
104105
Distributions._logpdf(d::MultivariateDistribution, x::AbstractArray)
105106
```
106107

107-
## Product distributions
108-
109-
```@docs
110-
Distributions.product_distribution
111-
```
112-
113-
Using `product_distribution` is advised to construct product distributions.
114-
For some distributions, it constructs a special multivariate type.
115-
116108
## Index
117109

118110
```@index

0 commit comments

Comments
 (0)