Changeset fb0fadd in tol


Ignore:
Timestamp:
Nov 4, 2008, 3:42:20 PM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
86179b6
Parents:
f9045cd
Message:

Allowing fixed sigma in observational nodes

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/dynhlm/_build.node.obs.tol

    rf9045cd rfb0fadd  
    363363  //The result of calling Build.Serie.info for an input serie
    364364  NameBlock serie.info,
     365  Real sigma,
    365366  //A possibly empty set of ARIMA factors with structure ARIMAStruct
    366367  Set arima)
    … …  
    368369{[[
    369370  NameBlock _.serie.info=serie.info;
     371  Real _.sigma = sigma;
    370372  Set _.arima.factors = arima
    371373]]};
    … …  
    474476  //Returns a Real fixed known sigma value as prior information or a
    475477  //Text variable name to be simulated in the Sigma Gibbs block of BSR
    476   Text Get.Sigma2(Real unused)
     478
     479  Anything Get.Sigma2(Real unused)
    477480  {
    478     "SigmaBlk::"+_.id_node+"::Variance"
    479   };
     481    If(IsUnknown(_.output::_.sigma),
     482      "SigBlk::"+_.id_node+"::Variance",
     483      (_.output::_.sigma)^2)
     484  };
     485
    480486  /////////////////////////////////////////////////////////////////////////
    481487
Note: See TracChangeset for help on using the changeset viewer.