Skip to content

Commit

Permalink
Change default of quantile.dist_mvnorm() to use equicoordinate quantiles
Browse files Browse the repository at this point in the history
This reverts commit 10e8ef9.
  • Loading branch information
mitchelloharawild committed Sep 17, 2024
1 parent 3ea6158 commit 3a72169
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# distributional (development version)

## Breaking changes

* The `quantile()` method for `dist_multivariate_normal()` now defaults to
equicoordinate quantiles. To obtain marginal quantiles, you should use
`quantile(dist, p, type = "marginal")`.

# distributional 0.5.0

## New features
Expand Down
2 changes: 1 addition & 1 deletion R/dist_multivariate_normal.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ log_density.dist_mvnorm <- function(x, at, ..., na.rm = FALSE){
}

#' @export
quantile.dist_mvnorm <- function(x, p, type = c("marginal", "equicoordinate"),
quantile.dist_mvnorm <- function(x, p, type = c("equicoordinate", "marginal"),
..., na.rm = FALSE){
type <- match.arg(type)
q <- if (type == "marginal") {
Expand Down

0 comments on commit 3a72169

Please sign in to comment.