Changeset 91f3555 in tol
- Timestamp:
- Mar 11, 2009, 6:00:55 PM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- ddc5101
- Parents:
- 943545c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/stat/models/bayesian/bysMcmc/_inference_functions.tol
r943545c r91f3555 272 272 Real n = Columns(mcmc); 273 273 Real m = Rows (mcmc); 274 Set coda.raftery.diag = get.coda.raftery.diag(name, colNames, repCfg, mcmc); 274 275 Set idx_ = Range(1,n,1); 276 Set idx = Select(idx_,Real(Real col) 277 { 278 Matrix c = SubCol(mcmc,[[col]]); 279 MatMax(c)>MatMin(c) 280 }); 281 Matrix mcmcV = SubCol(mcmc_, idx); 282 //WriteLn("TRACE mcmcV("<<Rows(mcmcV)+"x"<<Columns(mcmcV)); 283 Set colNamesV = ExtractByIndex(colNames_,idx); 284 //WriteLn("TRACE colNamesV="<<colNamesV); 285 Set coda.raftery.diag = get.coda.raftery.diag(name, colNamesV, repCfg, mcmcV); 275 286 Set sample = get.sample(name, colNames, repCfg, mcmc); 276 287 Set coda.summary = get.coda.summary(name, colNames, repCfg, mcmc); … … 499 510 ///////////////////////////////////////////////////////////////////////////// 500 511 Set loadAndReport(Text path, Real burnin, Real length_, Real thinning, 501 Text name, Set colNames _, Set repCfg)512 Text name, Set colNames, Set repCfg) 502 513 ///////////////////////////////////////////////////////////////////////////// 503 514 { … … 505 516 Real max = (mcmc.dim::Rows-burnin)/thinning; 506 517 Real length = Min(max,length_); 507 Matrix mcmc_ = BysMcmc::Inference::loadMcmc(path, burnin, length, thinning); 518 Matrix mcmc = BysMcmc::Inference::loadMcmc(path, burnin, length, thinning); 519 /* 508 520 Set idx_ = Range(1,Columns(mcmc_),1); 509 521 Set idx = Select(idx_,Real(Real col) … … 513 525 Matrix mcmc = SubCol(mcmc_, idx); 514 526 Set colNames = ExtractByIndex(colNames_,idx); 527 */ 515 528 BysMcmc::Inference::report 516 529 (
Note: See TracChangeset
for help on using the changeset viewer.
