Skip to content

Commit

Permalink
Default to monotonic increasing for equal bounds
Browse files Browse the repository at this point in the history
Resolves #129
  • Loading branch information
mitchelloharawild committed Oct 15, 2024
1 parent 3a72169 commit f205f8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# distributional (development version)

## Improvements

* Transformed distributions now work better for monotonic increasing functions
when the domain of the untransformed distribution is R (#129).

## Breaking changes

* The `quantile()` method for `dist_multivariate_normal()` now defaults to
Expand Down
2 changes: 1 addition & 1 deletion R/transformed.R
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,5 @@ monotonic_increasing <- function(f, support) {

# Currently assumes (without checking, #9) monotonicity of f over the domain
x <- f(field(support, "lim")[[1]])
isTRUE(x[[2L]] > x[[1L]])
isTRUE(x[[2L]] >= x[[1L]])
}

0 comments on commit f205f8a

Please sign in to comment.