Skip to content

Commit

Permalink
Fiexed an error in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
adutfoy committed Jun 21, 2024
1 parent 7bc861e commit 2c14cd3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/test/t_KernelSmoothing_std.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@
kernel = ot.KernelSmoothing()
kernel.setUseLogTransform(True)
fitted = kernel.build(sample)
assert_almost_equal(fitted.getMean(), [4.3066], 1e-2)
assert_almost_equal(fitted.getMean(), distribution.getMean(), 1e-2)
quantile = distribution.computeQuantile(0.9)
assert_almost_equal(fitted.computePDF(quantile), [0.0191833], 1e-2)
assert_almost_equal(fitted.computePDF(quantile), distribution.computePDF(quantile), 1e-2)
quantile = distribution.computeQuantile(0.7)
assert_almost_equal(fitted.computePDF(quantile), [0.0812542], 1e-2)
assert_almost_equal(fitted.computePDF(quantile), distribution.computePDF(quantile), 1e-2)
quantile = distribution.computeQuantile(0.2)
assert_almost_equal(fitted.computePDF(quantile), [0.0819552], 1e-2)
assert_almost_equal(fitted.computePDF(quantile), distribution.computePDF(quantile), 1e-2)

0 comments on commit 2c14cd3

Please sign in to comment.