Ticket #10110: comparison.txt

File comparison.txt, 1.4 KB (added by Maximilian Kleinert <kleinert.max@…>, 8 years ago)

Comparison of assertion tests

Line 
1I did a test for the negative binomial distribution with parameters k = 1 and p = {-0.5, 0.0, 0.5, 1.0, 1.5}.
2Constructor:
3fail: Constructor calls abort
4pass: Constructor passes without any problems but mathemtically this distribution is not defined
5Ok: Constructor passes and parameters are valid
6
7Sampling:
8fail: Sampling from a constructed negative binomial distribution object fails (mostly due to parameter problems while constructing the poisson (in std case) or gamma (in boost case) distribution
9wrong: Sampling creates a value which is wrong. Either always zero or -2^31
10Ok: Everything is fine.
11
12
13STD random (-D_GLIBCXX_DEBUG)
14p = | -0.5 | 0.0 | 0.5 | 1.0 | 1.5 |
15------------+------+------+-----+------+------+
16Constructor | fail | fail | Ok | pass | fail |
17Sampling | -- | -- | Ok | fail | -- |
18Value | -- | -- | Ok | -- | -- |
19
20BOOST random
21p = | -0.5 | 0.0 | 0.5 | 1.0 | 1.5 |
22------------+------+-------+-----+------+------+
23Constructor | pass | pass | Ok | pass | pass |
24Sampling | fail | wrong | Ok | fail | fail |
25Value | -- | -2^31 | Ok | -- | -- |
26
27STD random
28p = | -0.5 | 0.0 | 0.5 | 1.0 | 1.5 |
29------------+-------+-------+-----+-------+-------+
30Constructor | pass | pass | Ok | pass | pass |
31Sampling | wrong | wrong | Ok | wrong | wrong |
32Value | 0 | -2^31 | Ok | 0 | 0 |