summaryrefslogtreecommitdiff
path: root/js/Linear/SOM_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-25 12:08:56 +0530
committerSunil Shetye2018-06-25 12:45:27 +0530
commit7c70459c10aed0d74ee03896abaf47fefdbf7c8f (patch)
tree6f6acc6a5087295c6e59f0f94bfda5025049d5fa /js/Linear/SOM_f.js
parent870479a2e4b932426a904b2ebae7e4ee72037326 (diff)
downloadsci2js-7c70459c10aed0d74ee03896abaf47fefdbf7c8f.tar.gz
sci2js-7c70459c10aed0d74ee03896abaf47fefdbf7c8f.tar.bz2
sci2js-7c70459c10aed0d74ee03896abaf47fefdbf7c8f.zip
separate out code for getvalue
Diffstat (limited to 'js/Linear/SOM_f.js')
-rw-r--r--js/Linear/SOM_f.js50
1 files changed, 25 insertions, 25 deletions
diff --git a/js/Linear/SOM_f.js b/js/Linear/SOM_f.js
index 3d201947..e119ce47 100644
--- a/js/Linear/SOM_f.js
+++ b/js/Linear/SOM_f.js
@@ -1,40 +1,40 @@
/* autogenerated from "macros/Linear/SOM_f.sci" */
function SOM_f() {
SOM_f.prototype.define = function SOM_f() {
-sgn=[[1],[1],[1]];
-model=scicos_model();
-model.sim=list("sum",2);
-model.in1=[[-1],[-1],[-1]];
-model.out=-1;
-model.rpar=sgn;
-model.blocktype="c";
-model.dep_ut=[true,false];
-exprs=[[sci2exp(1)],[sci2exp(sgn)]];
-gr_i=[];
-x=standard_define([2,2],model,exprs,gr_i);
+ sgn = [[1],[1],[1]];
+ model = scicos_model();
+ model.sim = list("sum",2);
+ model.in1 = [[-1],[-1],[-1]];
+ model.out = -1;
+ model.rpar = sgn;
+ model.blocktype = "c";
+ model.dep_ut = [true,false];
+ exprs = [[sci2exp(1)],[sci2exp(sgn)]];
+ gr_i = [];
+ x = standard_define([2,2],model,exprs,gr_i);
}
SOM_f.prototype.details = function SOM_f() {
}
SOM_f.prototype.get = function SOM_f() {
}
SOM_f.prototype.set = function SOM_f() {
-x=arg1;
-graphics=arg1.graphics;
-model=arg1.model;
-exprs=graphics.exprs;
-if (size(exprs,"*")==2) {
-exprs=exprs[2-1];
+ x = arg1;
+ graphics = arg1.graphics;
+ model = arg1.model;
+ exprs = graphics.exprs;
+ if (size(exprs,"*")==2) {
+ exprs = exprs[2-1];
}
-if (size(exprs,"*")!=3) {
-exprs=string(model.rpar);
+ if (size(exprs,"*")!=3) {
+ exprs = string(model.rpar);
}
-if (graphics.flip) {
-labs=["down","left","up"];
-} else {
-labs=["down","right","up"];
+ if (graphics.flip) {
+ labs = ["down","left","up"];
+ } else {
+ labs = ["down","right","up"];
}
-str=[["This sum block is obsolete","parameters cannot be modified. Please replace it with new sum block"],["and gain blocks in the linear palette"," ","Input ports are located at up, side and down positions.","Current gains are:"]];
-str=[[str],[(part(labs.slice(),1,7)+exprs.slice())]];
+ str = [["This sum block is obsolete","parameters cannot be modified. Please replace it with new sum block"],["and gain blocks in the linear palette"," ","Input ports are located at up, side and down positions.","Current gains are:"]];
+ str = [[str],[(part(labs.slice(),1,7)+exprs.slice())]];
message(str);
}
}