summaryrefslogtreecommitdiff
path: root/data_structures/SOM_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/SOM_f.js')
-rw-r--r--data_structures/SOM_f.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/SOM_f.js b/data_structures/SOM_f.js
index 223f883..d17adbe 100644
--- a/data_structures/SOM_f.js
+++ b/data_structures/SOM_f.js
@@ -4,8 +4,8 @@ function SOM_f () {
var sgn = [[1],[1],[1]];
var model = scicos_model();
- model.sim=list("sum",2);
- model.in = new ScilabDouble([-1],[-1],[-1]);
+ model.sim=list(new ScilabString(["sum"]),new ScilabDouble([2]));
+ model.in1 = new ScilabDouble([-1],[-1],[-1]);
model.out = new ScilabDouble([-1]);
model.rpar=new ScilabDouble([sgn]);
model.blocktype = new ScilabString(["c"]);
@@ -15,4 +15,5 @@ function SOM_f () {
var gr_i = [];
this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
}