m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-08-30 16:36:40 -0400
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-08-30 16:36:40 -0400
commita7b971ef64f09a21902f34b6078b01d78dcf73e7 (patch)
treef3ed0e97fe3f31e8c7ca58e18a5835290e66c755 /index.js
parent5b77a409c912f7251da8c170bd4a3aa8826d989b (diff)
Implement threshold under
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.js b/index.js
index 740b96e..6dd9a5f 100644
--- a/index.js
+++ b/index.js
@@ -21,6 +21,8 @@ const interpret = tree => {
return D.againUnder(interpret(tree.left), interpret(tree.right))
case 'T':
return D.threshold(interpret(tree.left), interpret(tree.right))
+ case 't':
+ return D.thresholdLow(interpret(tree.left), interpret(tree.right))
case 'add':
return D.add(interpret(tree.left), interpret(tree.right))
case 'subtract':