Bob Carpenter
unread,Aug 22, 2012, 5:44:29 PM8/22/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to stan...@googlegroups.com
I don't know how much this matters, but we're now
off in the fourth significant digit, which seems like
a mile:
src/test/prob/distributions/univariate/discrete/binomial_test.cpp:5: Failure
Value of: stan::prob::binomial_log(10,20,0.4)
Actual: -2.140208
Expected: -2.144372
[ FAILED ] ProbDistributionsBinomial.Binomial (0 ms)
The test that fails is:
EXPECT_FLOAT_EQ(-2.144372, stan::prob::binomial_log(10,20,0.4));
I used R to generate the value to test against:
> dbinom(10,20,0.4,log=T)
[1] -2.144372
I just reduced the arithmetic precision on that particular
test to 0.005 and it passes, but just wanted to bring this up in case
it's an issue.
- Bob