From f102d70d8010da59771df5c194ec864076099d8f Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Tue, 12 Apr 2022 17:45:44 +1000 Subject: [PATCH] Add mixture alias --- .../ReducerInterface/ReducerInterface_GenericDistribution.res | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_GenericDistribution.res b/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_GenericDistribution.res index 3bb425d1..53847416 100644 --- a/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_GenericDistribution.res +++ b/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_GenericDistribution.res @@ -177,7 +177,7 @@ let dispatchToGenericOutput = (call: ExpressionValue.functionCall): option< Helpers.toDistFn(Truncate(None, Some(float)), dist) | ("truncate", [EvDistribution(dist), EvNumber(float1), EvNumber(float2)]) => Helpers.toDistFn(Truncate(Some(float1), Some(float2)), dist) - | ("mx", args) => + | (("mx" | "mixture"), args) => Helpers.mixture(args) -> Some | ("log", [EvDistribution(a)]) => Helpers.twoDiststoDistFn(Algebraic, "log", a, GenericDist.fromFloat(Math.e))->Some