Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #568 from karlnapf/master
fixes problem with non-terminating test
  • Loading branch information
karlnapf committed Jun 5, 2012
2 parents c4402d5 + 62ab975 commit 90df188
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/undocumented/libshogun/statistics.cpp
Expand Up @@ -42,8 +42,10 @@ void test_inverse_incomplete_gamma()
difference=CMath::abs(difference);
ASSERT(difference<=10E-15);

difference=CStatistics::inverse_incomplete_gamma(0, 1-0.95)*3;
ASSERT(difference==0);
difference=CStatistics::inverse_incomplete_gamma(0.1, 1-0.95)*3;
difference-=1.741305315969402;
difference=CMath::abs(difference);
ASSERT(difference<=10E-15)

difference=CStatistics::inverse_incomplete_gamma(2, 1-0.95)*0.1;
difference-=0.474386451839058;
Expand Down

0 comments on commit 90df188

Please sign in to comment.