Changed variable name export

This commit is contained in:
Ozzie Gooen 2022-02-17 18:36:42 -05:00
parent 96f0ab150d
commit 4bc15fdc0d
2 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,7 @@ module Inputs = {
}
}
type \"export" = [
type exported = [
| #DistPlus(DistPlus.t)
| #Float(float)
| #Function(
@ -126,7 +126,7 @@ let coersionToExportedTypes = (
inputs,
env: ASTTypes.environment,
node: ASTTypes.node,
): result<\"export", string> =>
): result<exported, string> =>
node
|> renderIfNeeded(inputs)
|> E.R.bind(_, x =>

View File

@ -75,6 +75,8 @@ module AlgebraicCombination = {
}
module PointwiseCombination = {
//TODO: This is crude and slow. It forces everything to be pointSetDist, even though much
//of the process could happen on symbolic distributions without a conversion to be a pointSetDist.
let pointwiseAdd = (evaluationParams: evaluationParams, t1: t, t2: t) =>
switch (Node.render(evaluationParams, t1), Node.render(evaluationParams, t2)) {
| (Ok(#RenderedDist(rs1)), Ok(#RenderedDist(rs2))) =>