Changeset 12df85b in tol
- Timestamp:
- Nov 28, 2008, 2:02:53 PM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- d29988b
- Parents:
- fdc8a04
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_nonLinBlock.tol
rfdc8a04 r12df85b 81 81 0 82 82 }); 83 Code _.get.prior = If(FunctionExist("Matrix","_.filterEval::get.prior"), 84 _.filterEval::get.prior, 85 Matrix (Real paramIdx) {Rand(0,1,0,0) } ); 83 86 //Names of affected parameters in linear block 84 87 //(just for input filters) … … 161 164 Set bounds = _.filterEval::get.bounds(i,u); 162 165 Code fltEv = _.filterEval::eval; 166 Code get.prior = _.get.prior; 163 167 Matrix Z = _.Z; 164 168 Real x0 = bounds[1]; … … 177 181 Matrix Fi = fltEv(u); 178 182 Real Do PutMatDat(u,i,1,old); 179 VMat2Mat(si*Mat2VMat(Z-Fi*omega)) 183 Matrix fn = VMat2Mat(si*Mat2VMat(Z-Fi*omega)); 184 fn << get.prior(i) 180 185 }; 181 186 Real LogDens.WhiteNoise(Real x)
Note: See TracChangeset
for help on using the changeset viewer.
