Changeset 12df85b in tol


Ignore:
Timestamp:
Nov 28, 2008, 2:02:53 PM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
d29988b
Parents:
fdc8a04
Message:

Handling with normal prior information about parameters of non linear filters

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_nonLinBlock.tol

    rfdc8a04 r12df85b  
    8181    0
    8282  });
     83  Code _.get.prior = If(FunctionExist("Matrix","_.filterEval::get.prior"),
     84    _.filterEval::get.prior,
     85    Matrix (Real paramIdx) {Rand(0,1,0,0) } );
    8386  //Names of affected parameters in linear block
    8487  //(just for input filters)
    … …  
    161164      Set bounds = _.filterEval::get.bounds(i,u);
    162165      Code fltEv = _.filterEval::eval;
     166      Code get.prior = _.get.prior;
    163167      Matrix Z = _.Z;
    164168      Real x0 = bounds[1];
    … …  
    177181        Matrix Fi = fltEv(u);
    178182        Real Do PutMatDat(u,i,1,old);
    179         VMat2Mat(si*Mat2VMat(Z-Fi*omega))
     183        Matrix fn = VMat2Mat(si*Mat2VMat(Z-Fi*omega));
     184        fn << get.prior(i)
    180185      };
    181186      Real LogDens.WhiteNoise(Real x)
Note: See TracChangeset for help on using the changeset viewer.