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