Changeset e2ecdcf in tol
- Timestamp:
- Oct 23, 2008, 8:41:03 AM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 5c3d5b2
- Parents:
- df1ac43
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_nonLinBlock.tol
rdf1ac43 re2ecdcf 71 71 Set _.colNames = _.filterEval::get.colNames(0); 72 72 //For input filters is +1, for output ones -1 73 Real _. signNoise = If(!FunctionExist("Set","_.filterEval::get.linBlkNames"),74 { 75 -173 Real _.isInputFilter = If(FunctionExist("Set","_.filterEval::get.linBlkNames"), 74 { 75 If(Card(_.filterEval::get.linBlkNames(0)),1,0) 76 76 }, 77 77 { 78 If(Card(_.filterEval::get.linBlkNames(0)),1,-1)78 0 79 79 }); 80 80 //Names of affected parameters in linear block 81 81 //(just for input filters) 82 Set _.linBlkNames = If( Eq(_.signNoise,-1), Copy(Empty),82 Set _.linBlkNames = If(!_.isInputFilter, Copy(Empty), 83 83 { 84 84 _.filterEval::get.linBlkNames(0) … … 86 86 //Positions of columns of affected parameters in linear block 87 87 //(just for input filters) 88 Set _.filterColIdx = If( Eq(_.signNoise,-1), Copy(Empty),88 Set _.filterColIdx = If(!_.isInputFilter, Copy(Empty), 89 89 { 90 90 _.bsr::_.lin.blk::_.blockDef::getStoreColIndexes(_.linBlkNames) … … 130 130 NameBlock sigBlk = _.bsr::_.sig.blk; 131 131 Matrix u = VMat2Mat(_.blockDef::_.store); 132 //WriteLn("TRACE"+_MID+"draw.scalar 1.1 _. signNoise = "<<_.signNoise);133 Matrix omega= If( Eq(_.signNoise,-1), Col(1),132 //WriteLn("TRACE"+_MID+"draw.scalar 1.1 _.isInputFilter = "<<_.isInputFilter); 133 Matrix omega= If(!_.isInputFilter, Col(1), 134 134 SubRow(VMat2Mat(_.bsr::_.lin.blk::_.blockDef::_.store), 135 135 _.filterColIdx)); … … 138 138 Matrix _.W := VMat2Mat(SubRow(fullNoise,_.segment->EquIdx)); 139 139 //WriteLn("TRACE"+_MID+"draw.scalar 1.4 _.W("<<Rows(_.W)+"x"<<Columns(_.W)); 140 Matrix _.Z := _.W *_.signNoise+ _.Fi * omega;140 Matrix _.Z := _.W + _.Fi * omega; 141 141 //WriteLn("TRACE"+_MID+"draw.scalar 1.5 _.Z("<<Rows(_.Z)+"x"<<Columns(_.Z)); 142 142 Set aux = _.segment->ArimaAuxInfo; … … 318 318 Matrix _.Fi := _.filterEval::eval(VMat2Mat(_.blockDef::_.store)); 319 319 //WriteLn("TRACE "+_MID+"::setStore 4"); 320 If( _.signNoise == -1, 0,320 If(!_.isInputFilter, 0, 321 321 { 322 322 SetMin(For(1,_.filterColNum,Real(Real column)
Note: See TracChangeset
for help on using the changeset viewer.
