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, kernelWidth: options.kernelWidth,
}, },
~distPlusIngredients, ~distPlusIngredients,
~shouldDownsample=options.downsampleTo |> E.O.isSome,
~recommendedLength=options.downsampleTo |> E.O.default(1000), ~recommendedLength=options.downsampleTo |> E.O.default(1000),
~inputVariables= ~inputVariables=
[|("p", `SymbolicDist(`Float(1.0)))|] [|("p", `SymbolicDist(`Float(1.0)))|]

View File

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

View File

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