Changeset 77c3523 in tol
- Timestamp:
- Apr 13, 2009, 7:26:21 AM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 75b716c
- Parents:
- a2a1c99
- Location:
- tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs
- Files:
-
- 4 edited
-
_arimaBlock.tol (modified) (2 diffs)
-
_nonLinBlock.tol (modified) (2 diffs)
-
_sigmaBlock.tol (modified) (2 diffs)
-
_stdLinearBlock.tol (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_arimaBlock.tol
ra2a1c99 r77c3523 579 579 Matrix values = SetCol(arma.draw.all); 580 580 //WriteLn("TRACE"+_MID+" draw 3 "<<Matrix Tra(values)); 581 Real Do setStore(values); 582 Copy(_.store) 581 Mat2VMat(values) 583 582 }; 584 583 … … 602 601 //////////////////////////////////////////////////////////////////////////// 603 602 { 604 //WriteLn("TRACE"+_MID+" draw 1 "); 605 If(And(enabled, numSim%_skipIter==0), 606 { 607 //WriteLn("TRACE"+_MID+" draw 2 "); 608 draw.scalar(numSim, _.ws::noise, _.ws::sigma.full) 609 }, 610 { 611 Copy(_.store) 612 }) 603 draw.scalar(numSim, _.ws::noise, _.ws::sigma.full) 613 604 }; 614 605 -
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_nonLinBlock.tol
ra2a1c99 r77c3523 230 230 //WriteLn("TRACE"+_MID+"draw.scalar 3"); 231 231 //Real show.arma(0); 232 Real Do setStore(SetCol(draw.all)); 233 Copy(_.store) 232 Mat2VMat(SetCol(draw.all)) 234 233 }; 235 234 … … 249 248 { 250 249 //WriteLn("TRACE"+_MID+"draw 1"); 251 If(enabled, 252 { 253 draw.scalar(numSim) 254 }, 255 { 256 Copy(_.store) 257 }) 250 draw.scalar(numSim) 258 251 }; 259 252 -
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_sigmaBlock.tol
ra2a1c99 r77c3523 153 153 }) 154 154 }); 155 //WriteLn("TRACE "+_MID+" draw.invRandChisq 3 "); 156 Real Do setStore(SetCol(v)); 157 //WriteLn("TRACE "+_MID+" draw.invRandChisq 4 "); 158 Copy(_.store) 155 Mat2VMat(SetCol(v)) 159 156 }; 160 157 … … 177 174 //////////////////////////////////////////////////////////////////////////// 178 175 { 179 If(enabled, 180 { 181 draw.invRandChisq(numSim, _.ws::residuals) 182 }, 183 { 184 Copy(_.store) 185 }) 176 draw.invRandChisq(numSim, _.ws::residuals) 186 177 }; 187 178 -
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_stdLinearBlock.tol
ra2a1c99 r77c3523 434 434 { 435 435 //WriteLn("TRACE "+_MID+" draw 1"); 436 VMatrix b = If(Not(enabled), _.store, 437 { 438 //WriteLn("TRACE "+_MID+" draw 3"); 439 Real _.calculatedSimulation := _.calculatedSimulation+1; 440 //WriteLn("TRACE "+_MID+" draw 4"); 441 If(And(_.calculatedSimulation >_.MH.useAfterIter, 442 _.MH.consecutive <= _.MH.maxConsecutive), 443 draw.mh (numSim), 444 draw.gibbs(numSim)) 445 }); 446 Real putStoreV(b); 447 _.store 436 Real _.calculatedSimulation := _.calculatedSimulation+1; 437 //WriteLn("TRACE "+_MID+" draw 4"); 438 If(And(_.calculatedSimulation >_.MH.useAfterIter, 439 _.MH.consecutive <= _.MH.maxConsecutive), 440 draw.mh (numSim), 441 draw.gibbs(numSim)) 448 442 } 449 443
Note: See TracChangeset
for help on using the changeset viewer.
