From 35671c5c516ad84c519c62cc492e67b9b2c63f56 Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Tue, 20 Sep 2022 01:26:00 +0400 Subject: [PATCH] format --- .../SampleSetDist/SampleSetDist_ToPointSet.res | 10 +++++----- packages/squiggle-lang/src/rescript/Utility/E/E_A.res | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/squiggle-lang/src/rescript/Distributions/SampleSetDist/SampleSetDist_ToPointSet.res b/packages/squiggle-lang/src/rescript/Distributions/SampleSetDist/SampleSetDist_ToPointSet.res index 6157e83b..81bfc760 100644 --- a/packages/squiggle-lang/src/rescript/Distributions/SampleSetDist/SampleSetDist_ToPointSet.res +++ b/packages/squiggle-lang/src/rescript/Distributions/SampleSetDist/SampleSetDist_ToPointSet.res @@ -33,19 +33,19 @@ module Internals = { module KDE = { let normalSampling = (samples, outputXYPoints, kernelWidth) => - samples -> JS.samplesToContinuousPdf(outputXYPoints, kernelWidth) -> JS.jsToDist + samples->JS.samplesToContinuousPdf(outputXYPoints, kernelWidth)->JS.jsToDist } module T = { type t = array let xWidthToUnitWidth = (samples, outputXYPoints, xWidth) => { - let xyPointRange = E.A.Sorted.range(samples) -> E.O2.default(0.0) + let xyPointRange = E.A.Sorted.range(samples)->E.O2.default(0.0) let xyPointWidth = xyPointRange /. float_of_int(outputXYPoints) xWidth /. xyPointWidth } - let formatUnitWidth = w => Jstat.max([w, 1.0]) -> int_of_float + let formatUnitWidth = w => Jstat.max([w, 1.0])->int_of_float let suggestedUnitWidth = (samples, outputXYPoints) => { let suggestedXWidth = SampleSetDist_Bandwidth.nrd0(samples) @@ -87,7 +87,7 @@ let toPointSetDist = ( continuousPart, samplingInputs.outputXYPoints, ) - let usedWidth = samplingInputs.kernelWidth -> E.O2.default(_suggestedXWidth) + let usedWidth = samplingInputs.kernelWidth->E.O2.default(_suggestedXWidth) let usedUnitWidth = Internals.T.xWidthToUnitWidth( samples, samplingInputs.outputXYPoints, @@ -126,7 +126,7 @@ let toPointSetDist = ( let normalizedPointSet = pointSetDist->E.O2.fmap(PointSetDist.T.normalize) let samplesParse: Internals.Types.outputs = { - continuousParseParams: pdf -> E.O2.fmap(snd), + continuousParseParams: pdf->E.O2.fmap(snd), pointSetDist: normalizedPointSet, } diff --git a/packages/squiggle-lang/src/rescript/Utility/E/E_A.res b/packages/squiggle-lang/src/rescript/Utility/E/E_A.res index 54a26933..46ada15f 100644 --- a/packages/squiggle-lang/src/rescript/Utility/E/E_A.res +++ b/packages/squiggle-lang/src/rescript/Utility/E/E_A.res @@ -340,7 +340,7 @@ module Floats = { flush(cnt, prev) (1, element) } - } + }, ) // flush final values