Changeset 500724a in tol
- Timestamp:
- Sep 24, 2009, 11:04:26 AM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- be10b0b
- Parents:
- e658f6d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_basicMaster.tol
re658f6d r500724a 25 25 //Non linear blocks 26 26 Set _.nonLinBlk; 27 //Non linear filter of output28 Set _.nonLinOutputFilter;29 27 30 28 //-------------------------------------------------------------------------- … … 43 41 //Linear block values 44 42 VMatrix _.beta = Rand(0,1,0,0); 43 //Non linear filter of output 44 Set _.nonLinOutputFilter = Copy(Empty); 45 //Non linear filters with parameters to be drawn 46 Set _.nonLinDrawFilter = Copy(Empty); 45 47 46 48 //-------------------------------------------------------------------------- … … 207 209 Set _.nonLinOutputFilter := Select(_.nonLinBlk, sel.extFlt); 208 210 211 Real sel.drwFlt (BysMcmc::BlockSampler nlb) { nlb::_.N>0 }; 212 Set _.nonLinDrawFilter := Select(_.nonLinBlk, sel.drwFlt); 213 209 214 //WriteLn("TRACE"+_MID+" initialize 1"); 210 215 VMatrix _.YplusV := _.outMis.blk::filter(_.Y); … … 376 381 _.mln.blk::get.draw(numSim, False) 377 382 }); 378 Set nlb.aux = EvalSet(_.nonLinBlk, VMatrix(BlockNonLin nlb) 379 { 380 nlb::get.draw(numSim,False) 383 VMatrix nlb = If(!Card(_.nonLinBlk),Rand(0,1,0,0), 384 { 385 Set nlb.aux = EvalSet(_.nonLinBlk, VMatrix(BlockNonLin nlb) 386 { 387 nlb::get.draw(numSim,False) 388 }); 389 Group("ConcatRows", nlb.aux) 381 390 }); 382 VMatrix nlb = Group("ConcatRows", nlb.aux);383 391 //WriteLn("TRACE"+_MID+" MasterSamplerBasic::draw 6 _.beta="<<_.beta); 384 392 VMatrix param = _.beta << sig << arm << im << om << nlb; … … 852 860 //Internal reference to model definition 853 861 Set _.modelDef = modelDef; 854 //External filter of output855 Set _.nonLinOutputFilter = Copy(Empty);856 862 //Output after external filters 857 863 VMatrix _.Y = _.modelDef->Y;
Note: See TracChangeset
for help on using the changeset viewer.
