From 433780186bd4ebe074aee3a0442b02014ce010ea Mon Sep 17 00:00:00 2001 From: Nuno Sempere Date: Tue, 26 May 2020 16:40:02 +0200 Subject: [PATCH] Fixed formatting from the previous commit. The previous commit fixed a bug where the distribution would be sent to foretold inverted --- src/components/Drawer.re | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/Drawer.re b/src/components/Drawer.re index 610ea3e9..fa0babbe 100644 --- a/src/components/Drawer.re +++ b/src/components/Drawer.re @@ -347,9 +347,6 @@ module Draw = { CanvasContext.font(context, "16px Roboto"); CanvasContext.lineWidth(context, 2.0); - CanvasContext.font(context, "16px Roboto"); - CanvasContext.lineWidth(context, 2.0); - let numIntervals = 10; let width = float_of_int(rectangle.width); let height = float_of_int(rectangle.height); @@ -675,7 +672,7 @@ module State = { ~intendedSum=1.0, pdf, ); - Js.log(_pdf); + let cdf = Distributions.Continuous.T.integral(~cache=None, _pdf); let xs = [||]; let ys = [||];