From 0e9bc36f45fa1bb598c6ebb0febc1989439a8d98 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 11 Jul 2018 12:04:43 +0530 Subject: include in in modelvar --- js/Linear/BIGSOM_f.js | 2 +- js/Linear/DELAYV_f.js | 2 +- js/Linear/SOM_f.js | 2 +- js/Linear/SUMMATION.js | 2 +- js/Linear/SUM_f.js | 2 +- js/Linear/TCLSS.js | 2 +- js/Linear/TCLSS_f.js | 2 +- js/Linear/VARIABLE_DELAY.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'js/Linear') diff --git a/js/Linear/BIGSOM_f.js b/js/Linear/BIGSOM_f.js index 5c887738..da6a2b13 100644 --- a/js/Linear/BIGSOM_f.js +++ b/js/Linear/BIGSOM_f.js @@ -4,7 +4,7 @@ function BIGSOM_f() { this.sgn = [[1],[1]]; this.model = scicos_model(); this.model.sim = list(new ScilabString(["sum"]), new ScilabDouble([2])); - this.model.in1 = [[-1],[-1]]; + this.model.in1 = new ScilabDouble([-1],[-1]); this.model.out = new ScilabDouble([-1]); this.model.rpar = new ScilabDouble(this.sgn); this.model.blocktype = new ScilabString(["c"]); diff --git a/js/Linear/DELAYV_f.js b/js/Linear/DELAYV_f.js index cfadf33e..e8b2de09 100644 --- a/js/Linear/DELAYV_f.js +++ b/js/Linear/DELAYV_f.js @@ -7,7 +7,7 @@ function DELAYV_f() { this.T = 1; this.model = scicos_model(); this.model.sim = list(new ScilabString(["delayv"]), new ScilabDouble([1])); - this.model.in1 = [[this.nin],[1]]; + this.model.in1 = new ScilabDouble([this.nin],[1]); this.model.out = new ScilabDouble([this.nin]); this.model.evtin = new ScilabDouble([1]); this.model.evtout = new ScilabDouble([1],[1]); diff --git a/js/Linear/SOM_f.js b/js/Linear/SOM_f.js index 33b8d81b..ec087b3c 100644 --- a/js/Linear/SOM_f.js +++ b/js/Linear/SOM_f.js @@ -4,7 +4,7 @@ function SOM_f() { sgn = [[1],[1],[1]]; this.model = scicos_model(); this.model.sim = list(new ScilabString(["sum"]), new ScilabDouble([2])); - this.model.in1 = [[-1],[-1],[-1]]; + this.model.in1 = new ScilabDouble([-1],[-1],[-1]); this.model.out = new ScilabDouble([-1]); this.model.rpar = new ScilabDouble(sgn); this.model.blocktype = new ScilabString(["c"]); diff --git a/js/Linear/SUMMATION.js b/js/Linear/SUMMATION.js index f6258a04..a56677db 100644 --- a/js/Linear/SUMMATION.js +++ b/js/Linear/SUMMATION.js @@ -4,7 +4,7 @@ function SUMMATION() { this.sgn = [[1],[-1]]; this.model = scicos_model(); this.model.sim = list(new ScilabString(["summation"]), new ScilabDouble([4])); - this.model.in1 = [[-1],[-1]]; + this.model.in1 = new ScilabDouble([-1],[-1]); this.model.out = new ScilabDouble([-1]); this.model.in2 = new ScilabDouble([-2],[-2]); this.model.out2 = new ScilabDouble([-2]); diff --git a/js/Linear/SUM_f.js b/js/Linear/SUM_f.js index 70d6662f..5557a31a 100644 --- a/js/Linear/SUM_f.js +++ b/js/Linear/SUM_f.js @@ -3,7 +3,7 @@ function SUM_f() { SUM_f.prototype.define = function SUM_f() { this.model = scicos_model(); this.model.sim = list(new ScilabString(["plusblk"]), new ScilabDouble([2])); - this.model.in1 = [[-1],[-1],[-1]]; + this.model.in1 = new ScilabDouble([-1],[-1],[-1]); this.model.out = new ScilabDouble([-1]); this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [true,false]; diff --git a/js/Linear/TCLSS.js b/js/Linear/TCLSS.js index bce3ad8b..50067410 100644 --- a/js/Linear/TCLSS.js +++ b/js/Linear/TCLSS.js @@ -11,7 +11,7 @@ function TCLSS() { out = 1; this.model = scicos_model(); this.model.sim = list(new ScilabString(["tcslti4"]), new ScilabDouble([4])); - this.model.in1 = [[in1],[nx]]; + this.model.in1 = new ScilabDouble([in1],[nx]); this.model.out = new ScilabDouble([out]); this.model.evtin = new ScilabDouble([1]); this.model.state = new ScilabDouble([this.x0]); diff --git a/js/Linear/TCLSS_f.js b/js/Linear/TCLSS_f.js index d74c397a..5fd45bac 100644 --- a/js/Linear/TCLSS_f.js +++ b/js/Linear/TCLSS_f.js @@ -11,7 +11,7 @@ function TCLSS_f() { out = 1; this.model = scicos_model(); this.model.sim = list(new ScilabString(["tcslti"]), new ScilabDouble([1])); - this.model.in1 = [[in1],[nx]]; + this.model.in1 = new ScilabDouble([in1],[nx]); this.model.out = new ScilabDouble([out]); this.model.evtin = new ScilabDouble([1]); this.model.state = new ScilabDouble([this.x0]); diff --git a/js/Linear/VARIABLE_DELAY.js b/js/Linear/VARIABLE_DELAY.js index 52e6067c..575eafc3 100644 --- a/js/Linear/VARIABLE_DELAY.js +++ b/js/Linear/VARIABLE_DELAY.js @@ -7,7 +7,7 @@ function VARIABLE_DELAY() { this.N = 1024; this.model = scicos_model(); this.model.sim = list(new ScilabString(["variable_delay"]), new ScilabDouble([4])); - this.model.in1 = [[nin],[1]]; + this.model.in1 = new ScilabDouble([nin],[1]); this.model.out = new ScilabDouble([nin]); this.model.rpar = [this.T,this.init]; this.model.ipar = new ScilabDouble([this.N]); -- cgit