Skip to content
  • Taylor R Campbell's avatar
    Move ceil call back into the geometric sampler. · 531df959
    Taylor R Campbell authored
    Test exactly what the geometric sampler returns, because that's what
    the downstream callers of it are going to use.
    
    While here, also assert that the geometric sampler returns a positive
    integer.  (Our geometric distribution is the one suported on {1, 2,
    3, ...} that returns the number of trials before the first success,
    not the one supported on {0, 1, 2, ...} that returns the number of
    failures before the first success.)
    531df959