Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make_d_fn issues when min/max ps are 0 or 1 #26

Open
elray1 opened this issue Oct 30, 2023 · 0 comments
Open

make_d_fn issues when min/max ps are 0 or 1 #26

elray1 opened this issue Oct 30, 2023 · 0 comments

Comments

@elray1
Copy link
Contributor

elray1 commented Oct 30, 2023

e.g.

> ps <- c(0, 0.5, 1)
> qs <- 1:3
> d_fn <- make_d_fn(ps=ps, qs=qs)
> d_fn(seq(from = 0.0, to = 4.0, by = 0.1))
 [1] NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5
[20] 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 NaN NaN NaN NaN NaN NaN NaN
[39] NaN NaN NaN

We should catch and handle situations where min(ps) == 0 or max(ps) == 1 in d_ext_factory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant