Changeset 004a6df in tol


Ignore:
Timestamp:
Apr 30, 2009, 8:09:07 AM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
d2bd38c
Parents:
483cd65
Message:

Fixes #688

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

File:
1 edited

Legend:

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

    r483cd65 r004a6df  
    8585    0
    8686  });
     87  //Default value for marginal draw
     88  Matrix _defaultMarginalDraw = Rand(Card(_.colNames), 1, ?, ?);
    8789  //Optional filter method to be called before to call draw.scalar
    8890  //This method will be called just before to call draw method of corresponding
    8991  //internal non linear block in order to select which parameters will be drawn.
    90   //Rest of parameters must be set inside of method selectDrawIndex.
    91   //Set selectDrawIndex(Real unused)
    92   Code _.selectDrawIndex = If(FunctionExist("Real","_.filterEval::selectDrawIndex"),
    93   {
    94     WriteLn(_MID+"Using specified selectDrawIndex method");
    95     _.filterEval::selectDrawIndex
     92  //It will return a matrix with marginal sampling in selected indexes and ? in
     93  //other ones that will be sampled by non linear block in the standard way
     94  Code _.marginalDraw = If(FunctionExist("Real","_.filterEval::marginalDraw"),
     95  {
     96    WriteLn(_MID+"Using specified marginalDraw method");
     97    _.filterEval::marginalDraw
    9698  },
    9799  {
    98     WriteLn(_MID+"Using default selectDrawIndex method");
    99     Set (Real unused) { Range(1,Card(_.colNames),1) }
     100    WriteLn(_MID+"Using default marginalDraw method");
     101    Matrix (Real unused) { _defaultMarginalDraw }
    100102  });
    101103  //Optional filter method that returns log of prior density for one parameter
Note: See TracChangeset for help on using the changeset viewer.