Changeset dadf1e9 in tol
- Timestamp:
- Apr 14, 2009, 1:43:57 PM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 7f84566
- Parents:
- b57d0d0
- Location:
- tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs
- Files:
-
- 4 edited
-
_inputMissingBlock.tol (modified) (1 diff)
-
_mainLinearBlock.tol (modified) (1 diff)
-
_outputMissingBlock.tol (modified) (1 diff)
-
_stdLinearBlock.tol (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_inputMissingBlock.tol
rb57d0d0 rdadf1e9 18 18 { 19 19 If(!Card(inputMissingBlock), 20 BysMcmc:: NoBlockSampler(name, Empty, numBlock, firstCol, config),21 BysMcmc::Bsr::Gibbs::StdLinear Block blk = [[20 BysMcmc::Bsr::Gibbs::NoStdLinearBlock(name, Empty, numBlock, firstCol, config), 21 BysMcmc::Bsr::Gibbs::StdLinearFullBlock blk = [[ 22 22 //Given initial values of block variables 23 23 VMatrix _.store_ = Mat2VMat(SetMat(Extract(inputMissingBlock, 6))); -
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_mainLinearBlock.tol
rb57d0d0 rdadf1e9 28 28 { 29 29 If(!Card(varNames), 30 BysMcmc:: NoBlockSampler(name, varNames, numBlock, firstCol, config),31 BysMcmc::Bsr::Gibbs::StdLinear Block blk = [[30 BysMcmc::Bsr::Gibbs::NoStdLinearBlock(name, Empty, numBlock, firstCol, config), 31 BysMcmc::Bsr::Gibbs::StdLinearFullBlock blk = [[ 32 32 //Defining the block in the Markov Chain 33 33 Real _define = define(name, varNames, numBlock, firstCol, config); -
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_outputMissingBlock.tol
rb57d0d0 rdadf1e9 17 17 { 18 18 If(!Card(outputMissingBlock), 19 BysMcmc:: NoBlockSampler(name, Empty, numBlock, firstCol, config),20 BysMcmc::Bsr::Gibbs::StdLinear Block blk = [[19 BysMcmc::Bsr::Gibbs::NoStdLinearBlock(name, Empty, numBlock, firstCol, config), 20 BysMcmc::Bsr::Gibbs::StdLinearFullBlock blk = [[ 21 21 //Given initial values of block variables 22 22 VMatrix _.store = Mat2VMat(SetMat(Extract(outputMissingBlock, 6))); -
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_stdLinearBlock.tol
rb57d0d0 rdadf1e9 483 483 ////////////////////////////////////////////////////////////////////////////// 484 484 { 485 Real initialize.subBlocks(Real unused); 486 Real matchConstrains(VMatrix beta0, VMatrix A, VMatrix a); 487 488 //////////////////////////////////////////////////////////////////////////// 489 Real initialize(Real unused) 490 //////////////////////////////////////////////////////////////////////////// 491 { 492 initialize.subBlocks(unused) 493 }; 494 495 //////////////////////////////////////////////////////////////////////////// 496 //Default behaviour assumes standarized linear regression 497 VMatrix standarize(VMatrix _Z) 498 //////////////////////////////////////////////////////////////////////////// 499 { 500 _Z 501 }; 502 503 //////////////////////////////////////////////////////////////////////////// 504 NameBlock getWorkSpace(Real unused) 505 //////////////////////////////////////////////////////////////////////////// 506 { 507 _.ws 508 } 509 510 }; 511 512 ////////////////////////////////////////////////////////////////////////////// 513 StdLinearBlock NoStdLinearBlock(Text name, Set colNames, 514 Real numBlock, Real firstCol, 515 Config config) 516 ////////////////////////////////////////////////////////////////////////////// 517 { 518 BysMcmc::Bsr::Gibbs::StdLinearBlock noBlock = 519 [[ 520 Real _define = define(name, colNames, numBlock, firstCol, config); 521 VMatrix draw(Real numSim) { ? }; 522 Code _.buildWorkSpace = draw; 523 Real initialize.subBlocks(Real unused) { ? }; 524 Real matchConstrains(VMatrix beta0, VMatrix A, VMatrix a) { ? } 525 ]]; 526 noBlock 527 }; 528 529 ////////////////////////////////////////////////////////////////////////////// 530 Text _.autodoc.member.StdLinearFullBlock = 531 "Builds a NameBlock that can draw a Gibbs sample of an standarized linear " 532 "block of a general regression model with variant input and ouput regression " 533 "matrices and optional but fixed constraining inequations."; 534 ////////////////////////////////////////////////////////////////////////////// 535 Class StdLinearFullBlock: StdLinearBlock 536 ////////////////////////////////////////////////////////////////////////////// 537 { 485 538 BysMcmc::Bsr::Gibbs::StdLinearSubBlock _.subBlock = 486 539 BysMcmc::Bsr::Gibbs::StdLinearSubBlock.Build(_MID+"[_.subBlock] "); … … 551 604 552 605 }; 553 554 606 /* 555 607 //////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.
