Changeset 004a6df in tol
- Timestamp:
- Apr 30, 2009, 8:09:07 AM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- d2bd38c
- Parents:
- 483cd65
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_nonLinBlock.tol
r483cd65 r004a6df 85 85 0 86 86 }); 87 //Default value for marginal draw 88 Matrix _defaultMarginalDraw = Rand(Card(_.colNames), 1, ?, ?); 87 89 //Optional filter method to be called before to call draw.scalar 88 90 //This method will be called just before to call draw method of corresponding 89 91 //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 selectDrawIndexmethod");95 _.filterEval:: selectDrawIndex92 //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 96 98 }, 97 99 { 98 WriteLn(_MID+"Using default selectDrawIndexmethod");99 Set (Real unused) { Range(1,Card(_.colNames),1)}100 WriteLn(_MID+"Using default marginalDraw method"); 101 Matrix (Real unused) { _defaultMarginalDraw } 100 102 }); 101 103 //Optional filter method that returns log of prior density for one parameter
Note: See TracChangeset
for help on using the changeset viewer.
