Changeset 500724a in tol


Ignore:
Timestamp:
Sep 24, 2009, 11:04:26 AM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
be10b0b
Parents:
e658f6d
Message:

Preparing for new modular parser

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1447 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_basicMaster.tol

    re658f6d r500724a  
    2525  //Non linear blocks
    2626  Set _.nonLinBlk;
    27   //Non linear filter of output
    28   Set _.nonLinOutputFilter;
    2927
    3028  //--------------------------------------------------------------------------
    … …  
    4341  //Linear block values
    4442  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);
    4547
    4648  //--------------------------------------------------------------------------
    … …  
    207209    Set _.nonLinOutputFilter := Select(_.nonLinBlk, sel.extFlt);
    208210
     211    Real sel.drwFlt (BysMcmc::BlockSampler nlb) { nlb::_.N>0 };
     212    Set _.nonLinDrawFilter := Select(_.nonLinBlk, sel.drwFlt);
     213
    209214  //WriteLn("TRACE"+_MID+" initialize 1");
    210215    VMatrix _.YplusV := _.outMis.blk::filter(_.Y);
    … …  
    376381      _.mln.blk::get.draw(numSim, False)
    377382    });
    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)
    381390    });
    382     VMatrix nlb = Group("ConcatRows", nlb.aux);
    383391  //WriteLn("TRACE"+_MID+" MasterSamplerBasic::draw 6 _.beta="<<_.beta);
    384392    VMatrix param = _.beta << sig << arm << im << om << nlb;
    … …  
    852860      //Internal reference to model definition
    853861      Set _.modelDef = modelDef;
    854       //External filter of output
    855       Set _.nonLinOutputFilter = Copy(Empty);
    856862      //Output after external filters
    857863      VMatrix _.Y = _.modelDef->Y;
Note: See TracChangeset for help on using the changeset viewer.