-
Notifications
You must be signed in to change notification settings - Fork 7
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
replicates should >= 0 #350
Comments
Hmm... requiring replicates to be >=1 makes it impossible to have the number of replicates be random. If that is intentional, perhaps you should also check that replicates is random and complain about that as well? Also, perhaps you should introduce an |
You can sample it from a Poisson distribution, and set min=1. This is an example from Alexei:
But I cannot figure out what replicates=0 means? |
Oops, somehow I misread the issue title as "replicates should be > 1". Sorry. I was thinking that you were going to forbid replicates=1 in order to avoid a choice of how to interpret that. But now I see my mistake. So, if replicates=1 returns x, then I also do not know what replicates=0 should return. But if replicates=1 returns [x], then replicates=0 would return []. The second case makes more sense to me because the return type does not depend on a parameter value. However, this is not as big a deal as I originally thought, since replicates=1 is still allowed. One question is if there are models where replicates=0 occurs. If we are constructing an n-component mixture model by drawing n replicates from some distribution, then we do need n >= 1. However, suppose we are looking at the number of change points in some interval. At each change point the evolutionary rate is multiplied by some value. Then we might find the rate at the end of the interval as follows:
If there are no change points (n==0) then we want to get This assumes that the |
Add the validation to check if
replicates >= 1
when using IID. Otherwise throwIllegalArgumentException
(Runtime) and catch at the top level.Update to
replicates >= 0
The text was updated successfully, but these errors were encountered: