Changeset 86179b6 in tol


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

Allowing fixed sigma in observational nodes

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

Location:
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/dynhlm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/dynhlm/_db_api.load.tol

    rfb0fadd r86179b6  
    223223      db_output->missingPriorSigmaFactor,
    224224      db_output->missingPriorLowerBound,
    225       db_output->missingPriorUpperBound),
     225      db_output->missingPriorUpperBound),
     226    db_sigma,
    226227    arima)};
    227228//WriteLn("TRACE LoadObsNode 6");
  • tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/dynhlm/_db_api.tools.modses.obs.tol

    rfb0fadd r86179b6  
    1717                              Real mis_pri_max,
    1818                              Date start,
    19                               Date end)
     19                              Date end,
     20                              Real sigma)
    2021//////////////////////////////////////////////////////////////////////////////
    2122{
    … …  
    2829  SqlFormatReal(mis_pri_max)+","+
    2930  SqlFormatDate(start)+","+
    30   SqlFormatDate(end));
     31  SqlFormatDate(end)+","+
     32  SqlFormatReal(sigma)+")");
    3133  Eval("ModSes.Obs.Output.Create.ok=ok")
    3234};
    … …  
    8284  SqlFormatReal(mis_pri_max));
    8385  Eval("ModSes.Obs.Input.Create.ok=ok")
     86};
     87
     88//////////////////////////////////////////////////////////////////////////////
     89//Inserts a new latent sigma block register
     90Real ModSes.Obs.SigBlk.Create(Text dbName,
     91                              Text model,
     92                              Text session,
     93                              Text node,
     94                              Real sigma)
     95//////////////////////////////////////////////////////////////////////////////
     96{
     97  NameBlock _table = BysMcmc::Bsr::DynHlm::DBApi::_.table;
     98  Real ok = BysMcmc::Bsr::DynHlm::DBApi::SqlExecTrace(
     99  "INSERT INTO "+dbName+"."+_table::ObsSigBlk+"\n"+
     100  "VALUES('"+model+"','"+session+"','"+node+"',"+
     101  If(IsUnknown(sigma),"NULL",BysMcmc::Bsr::Import::RealTextS(sigma))+")");
     102  Eval("ModSes.Lat.SigBlk.Create.ok=ok")
    84103};
    85104
    … …  
    176195      out::_.mis_pri_max,
    177196      out::_.firstDate,
    178       out::_.lastDate
     197      out::_.lastDate,
     198      out::_.sigma
    179199    )
    180200  },
Note: See TracChangeset for help on using the changeset viewer.