diff options
Diffstat (limited to 'js/Branching/SWITCH2.js')
-rw-r--r-- | js/Branching/SWITCH2.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/Branching/SWITCH2.js b/js/Branching/SWITCH2.js index 8fb48bf5..3b338dc2 100644 --- a/js/Branching/SWITCH2.js +++ b/js/Branching/SWITCH2.js @@ -24,6 +24,12 @@ function SWITCH2() { return this.x; } SWITCH2.prototype.get = function SWITCH2() { + var options = { + rule:["pass first input if: u2>=a (0), u2>a (1), u2~=a (2)",this.rule], + thra:["threshold a",this.thra], + nzz:["use zero crossing: yes (1), no (0)",this.nzz], + } + return options; } SWITCH2.prototype.set = function SWITCH2() { this.rule = parseFloat((arguments[0]["rule"])) |