Jeff: I think you might be misdiagnosing the OP's problem; I'm not
sure that the R parameterization is primarily intended to avoid FP
problems, but rather is *one* possible sensible choice of definition.
Note that the Wikipedia page on the geometric distribution:
What makes sense in a math class is not necessarily the same as what makes
sense in a floating point analysis environment.
You lose a lot of significant digits when you add 1 to a floating point number
that is close to zero, and this implementation allows the user to avoid that
structural
2 matches
Mail list logo