Changeset d3aa758 in tol


Ignore:
Timestamp:
Oct 26, 2008, 10:55:07 AM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a0a6906
Parents:
686f33d
Message:

Preparing for non parametric filters

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

File:
1 edited

Legend:

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

    r686f33d rd3aa758  
    6868    ((_.bsr::_.modelDef)->NoiseDistrib)[_.segmentNum]
    6969  });
     70  //Non linear parameters
     71  Set _.colNames = _.filterEval::get.colNames(0);
    7072  //Number of non linear parameters
    71   Set _.colNames = _.filterEval::get.colNames(0);
     73  Real _.numVar = Card(_.colNames);
    7274  //For input filters is +1, for output ones -1
    7375  Real _.isInputFilter = If(FunctionExist("Set","_.filterEval::get.linBlkNames"),
    … …  
    272274    {
    273275    //WriteLn("TRACE"+_MID+"draw 2");
    274       draw.scalar(numSim, False)
     276      If(_.blockDef::_.numCol==0,
     277      {
     278        Real setStore(_.blockDef::_.store);
     279        _.blockDef::_.store
     280      },
     281      {
     282        draw.scalar(numSim, False)
     283      })
    275284    },
    276285    {
    … …  
    311320  {
    312321  //WriteLn("TRACE "+_MID+"::setStore 1 values("<<Rows(values)+"x"<<Columns(values)+")");
    313     If(_.blockDef::_.numCol<=0,0,
     322    Real If(_.blockDef::_.numCol==0,0,
    314323    {
    315324    //WriteLn("TRACE "+_MID+"::setStore 2");
    316       Real _.blockDef::setStore(values);
     325      Real _.blockDef::setStore(values)
     326    });
    317327    //WriteLn("TRACE "+_MID+"::setStore 3");
    318       Matrix _.Fi := _.filterEval::eval(VMat2Mat(_.blockDef::_.store));
     328    Matrix _.Fi := _.filterEval::eval(VMat2Mat(_.blockDef::_.store));
    319329    //WriteLn("TRACE "+_MID+"::setStore 4");
    320       If(!_.isInputFilter, 0,
    321       {
    322         SetMin(For(1,_.filterColNum,Real(Real column)
    323         {
    324           _.bsr::setSegmentInputCol(
    325             SubCol(_.Fi,[[column]]),
    326             _.segmentNum,
    327             _.filterColIdx[column])
    328         }))
    329       })
     330    If(!_.isInputFilter, 0,
     331    {
     332      SetMin(For(1,_.filterColNum,Real(Real column)
     333      {
     334        _.bsr::setSegmentInputCol(
     335          SubCol(_.Fi,[[column]]), _.segmentNum, _.filterColIdx[column])
     336      }))
    330337    })
    331338  };
Note: See TracChangeset for help on using the changeset viewer.