Removed unused downsampleTo

This commit is contained in:
Ozzie Gooen 2020-07-30 18:23:17 +01:00
parent 8fdb54f0df
commit d2a17f9f1a
3 changed files with 1 additions and 5 deletions

View File

@ -151,7 +151,6 @@ module DemoDist = {
kernelWidth: options.kernelWidth,
},
~distPlusIngredients,
~shouldDownsample=options.downsampleTo |> E.O.isSome,
~recommendedLength=options.downsampleTo |> E.O.default(1000),
~inputVariables=
[|("p", `SymbolicDist(`Float(1.0)))|]

View File

@ -3,6 +3,7 @@
module Inputs = {
let defaultRecommendedLength = 10000;
let defaultShouldDownsample = true;
type ingredients = {
guesstimatorString: string,
domain: DistTypes.domain,
@ -27,14 +28,12 @@ module Inputs = {
distPlusIngredients: ingredients,
samplingInputs: RenderTypes.ShapeRenderer.Sampling.inputs,
recommendedLength: int,
shouldDownsample: bool,
inputVariables: Belt.Map.String.t(ExpressionTypes.ExpressionTree.node),
};
let make =
(
~samplingInputs=RenderTypes.ShapeRenderer.Sampling.Inputs.empty,
~recommendedLength=defaultRecommendedLength,
~shouldDownsample=defaultShouldDownsample,
~distPlusIngredients,
~inputVariables=[||]->Belt.Map.String.fromArray,
(),
@ -43,7 +42,6 @@ module Inputs = {
distPlusIngredients,
samplingInputs,
recommendedLength,
shouldDownsample,
inputVariables,
};
};

View File

@ -22,7 +22,6 @@ let propValue = (t: Prop.Value.t) => {
DistPlusRenderer.Inputs.make(
~distPlusIngredients=r,
~recommendedLength=10000,
~shouldDownsample=true,
(),
)
|> DistPlusRenderer.run;