Changeset 943545c in tol


Ignore:
Timestamp:
Mar 11, 2009, 5:58:55 PM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
91f3555
Parents:
9e0ac9c
Message:

Storing configuration parameters

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@732 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/math/stat/models/bayesian/bysMcmc/_build.tol

    r9e0ac9c r943545c  
    3333  NameBlock _.sampler  = modelSampler;
    3434  NameBlock _.notifier = notifier;
     35  NameBlock _.config   = config;
    3536  //Stores the sampler name
    3637  Text _.name = _.sampler::get.name(0)+"."+_.sampler::get.session(0);
    … …  
    4142  //Timer member that can be externally consulted
    4243  Real _.time = 0;
    43   Real _mcmc.maxTime = config::mcmc.maxTime;
     44  Real _mcmc.maxTime = _.config::mcmc.maxTime;
    4445  //Setting NameBlock description
    4546  Text _.autodoc.description="MCMC cycling builder for model "+_.name;
    … …  
    4950  //--------------------------------------------------------------------------
    5051  //The number of simulations cached in RAM before to disc writing
    51   Real cacheLength_ = config::mcmc.cacheLength;
     52  Real cacheLength_ = _.config::mcmc.cacheLength;
    5253  //If resume is true and there was old simulations in _.path, new ones will
    5354  //be added at the end. In other case old simulations will be lost.
    54   Real resume_ = config::do.resume;
     55  Real resume_ = _.config::do.resume;
    5556  //Bayesian inference configuration
    5657  Set bysInf_ = {BysInf.Report.Config
    5758  (
    58     Real raftery.diag.q   = config::report.raftery.diag.q,
    59     Real raftery.diag.r   = config::report.raftery.diag.r,
    60     Real raftery.diag.s   = config::report.raftery.diag.s,
    61     Real raftery.diag.eps = config::report.raftery.diag.eps,
    62     Real acf.lag          = config::report.acf.lag,
    63     Real histogram.parts  = config::report.histogram.parts,
    64     Real kerDens.points   = config::report.kerDens.points
     59    Real raftery.diag.q   = _.config::report.raftery.diag.q,
     60    Real raftery.diag.r   = _.config::report.raftery.diag.r,
     61    Real raftery.diag.s   = _.config::report.raftery.diag.s,
     62    Real raftery.diag.eps = _.config::report.raftery.diag.eps,
     63    Real acf.lag          = _.config::report.acf.lag,
     64    Real histogram.parts  = _.config::report.histogram.parts,
     65    Real kerDens.points   = _.config::report.kerDens.points
    6566  )};
    6667
    … …  
    177178  //WriteLn("TRACE "+_MID+"numSim="<<numSim);
    178179    Real okMls = Case(Or(numSim>1,
    179        config::mls.method==BysMcmc::Options::Mls.Method::None),
     180       _.config::mls.method==BysMcmc::Options::Mls.Method::None),
    180181    {
    181182      1
    182183    },
    183     config::mls.method==BysMcmc::Options::Mls.Method::FunnelGibbs,
     184    _.config::mls.method==BysMcmc::Options::Mls.Method::FunnelGibbs,
    184185    {
    185186      Real numIter = 1;
    186       While(numIter<=config::mls.maxIter,
     187      While(numIter<=_.config::mls.maxIter,
    187188      {
    188189        VMatrix param = _.sampler::maxLikelihood(numIter);
    … …  
    194195    {
    195196      WriteLn(_MID+"Unknown Maximum Likelihood Step method "+
    196               config::mls.method, "E");
     197              _.config::mls.method, "E");
    197198      0
    198199    });
Note: See TracChangeset for help on using the changeset viewer.