Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
venpopov committed Apr 6, 2024
1 parent 036627f commit d3cef8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/transformed.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ density.dist_transformed <- function(x, at, verbose = getOption('dist.verbose',

#' @export
cdf.dist_transformed <- function(x, q, ...){
if(!monotonic_increasing(x[["transform"]], support(x[["dist"]]))) p <- 1 - p
p <- cdf(x[["dist"]], eval_inverse(x, q), ...)
limits <- field(support(x), "lim")[[1]]
if(!monotonic_increasing(x[["transform"]], support(x[["dist"]]))) p <- 1 - p
if (!any(is.na(limits))) {
p[q <= limits[1]] <- 0
p[q >= limits[2]] <- 1
Expand Down

0 comments on commit d3cef8c

Please sign in to comment.