diff options
author | Sunil Shetye | 2018-07-02 22:51:03 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-02 22:51:03 +0530 |
commit | ca1a67f78f7de40a7956c69e41f4ddae2542f4f2 (patch) | |
tree | 6a07bd0428e542567726ff7325fcb71203ad6d15 /js/Branching/SWITCH2_m.js | |
parent | 5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (diff) | |
download | sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.gz sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.bz2 sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.zip |
add options block
Diffstat (limited to 'js/Branching/SWITCH2_m.js')
-rw-r--r-- | js/Branching/SWITCH2_m.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/Branching/SWITCH2_m.js b/js/Branching/SWITCH2_m.js index ba08a2b6..c386ff62 100644 --- a/js/Branching/SWITCH2_m.js +++ b/js/Branching/SWITCH2_m.js @@ -27,6 +27,13 @@ function SWITCH2_m() { return this.x; } SWITCH2_m.prototype.get = function SWITCH2_m() { + var options = { + ot:["Datatype (1=real double 2=complex 3=int32 ...)",this.ot], + 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_m.prototype.set = function SWITCH2_m() { this.ot = parseFloat((arguments[0]["ot"])) |