dubfi.tests.test_inversion_lognormal¶
Unit tests for dubfi.inversion.inversion_lognormal.
Added in version 0.1.3.
Functions¶
|
Test agreement of |
|
Test simple statistics of log-normal distribution. |
|
Test that local Gaussian approximation is correct. |
Module Contents¶
- dubfi.tests.test_inversion_lognormal.test_conversion(rng, size: int = 13, samples: int = 200) None¶
Test agreement of
dubfi.inversion.inversion_lognormal.normal2lognormal()anddubfi.inversion.inversion_lognormal.normal2lognormal().
- dubfi.tests.test_inversion_lognormal.test_normal2lognormal_statistics(rng, n=10000, plot=False) None¶
Test simple statistics of log-normal distribution.
Sample z from a Gaussian distribution. Check that exp(z) follows the expected distribution. This implicitly checks that
dubfi.inversion.inversion_lognormal.lognormal2normal()works as expected.
- dubfi.tests.test_inversion_lognormal.test_normal2lognormal_approx(res=100) None¶
Test that local Gaussian approximation is correct.
Compare the log-normal probability distribution to its local Gaussian approximation at the mode (maximum) of the distribution. This implicitly checks that
dubfi.inversion.inversion_lognormal.lognormal2normal()works as expected.