Skip to content

Commit

Permalink
up version (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrnv authored Mar 23, 2024
1 parent 75df29c commit 8f47a05
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docs/src/transformations.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,14 @@ CurrentModule = Copulas

```@docs
SurvivalCopula
```

## `SubsetCopula`

```@docs
Copulas.subsetdims
```

```@docs
Copulas.SubsetCopula
```
4 changes: 2 additions & 2 deletions src/SubsetCopula.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Constructor
SubsetCopula(C::Copula,dims)
This class allows to construct a random vector specified as X[dims] where X is the random vector correspnding to C and dims is a selection of dimensions.
This class allows to construct a random vector corresponding to a few dimensions of the starting copula. If ``(X_1,...,X_n)`` is the random vector corresponding to the copula `C`, this returns the copula of `(` ``X_i`` `for i in dims)`. The dependence structure is preserved. There are specialized methods for some copulas.
"""
struct SubsetCopula{d,CT} <: Copula{d}
C::CT
Expand Down Expand Up @@ -50,7 +50,7 @@ SubsetCopula(C::ArchimedeanCopula{d,TG},dims) where {d,TG} = ArchimedeanCopula(l
subsetdims(C::Copula,dims)
subsetdims(D::SklarDist, dims)
If X is the random vector corresponding to `C` or `D`, this returns the distributions of C[dims]. Has specialized methods for some copulas.
If ``(X_1,...,X_n)`` is the random vector corresponding to the model `C` or `D`, this returns the distribution on `(` ``X_i`` `for i in dims)`, preserving the dependence structure between the dimensions in `dims`. There are specialized methods for some copulas.
"""
subsetdims(C::Copula{d},dims) where d = SubsetCopula(C,dims)
subsetdims(D::SklarDist, dims) = SklarDist(subsetdims(D.C,dims), Tuple(D.m[i] for i in dims))

2 comments on commit 8f47a05

@lrnv
Copy link
Owner Author

@lrnv lrnv commented on 8f47a05 Mar 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/103461

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.22 -m "<description of version>" 8f47a0589efc49210f3d2177f306eb3bef5e90a6
git push origin v0.1.22

Please sign in to comment.