Changeset de893de in tol for tol_tests


Ignore:
Timestamp:
Nov 13, 2009, 7:13:20 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
9dd2c37
Parents:
ffb0c31
Message:

Storing ARMA initial values

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

Location:
tol_tests/tol/BSR/test_03
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol_tests/tol/BSR/test_03/def.tol

    rffb0c31 rde893de  
    2929
    3030//Number of variables of each observational node
    31 Real n = IntRand(20,30);
     31Real n = IntRand(10,10);
    3232Real S = 7;
    3333//Data length of each observational node
    3434Real m  = IntRand(300,600);
    3535//Number of observational nodes
    36 Real K1 = IntRand(2,4);
     36Real K1 = IntRand(2,2);
    3737//
    3838Real enableARMA = true;
    … …  
    4040Real p1 = enableARMA*IntRand(0,1);
    4141//Seasonal AR Degree
    42 Real pS = enableARMA*IntRand(1,1);
     42Real pS = enableARMA*0*IntRand(1,1);
    4343//Regular AR Degree
    4444Real q1 = enableARMA*IntRand(0,Max(0,1-p1));
  • tol_tests/tol/BSR/test_03/test.tol

    rffb0c31 rde893de  
    1818
    1919Real PutRandomSeed(0);
    20 
     20       
    2121//Random seed setting
    2222//VBR: Con estas semillas se cae sólo en la batería de tests pero no en tolbase
    … …  
    3737  Real mcmc.burnin = 100;
    3838  Real bsr.linBlk.MH.useAfterIter = 1/0;
    39   Text bsr.arimaFilter = BysMcmc::Options::Arima.Filter::DifEq;
     39  Real bsr.arimaStoreInitialValues = True;
    4040//Code bsr.scalarSampler.armaBlock = BysMcmc::Options::Scalar.Sampler::Arms;
    4141//Code bsr.scalarSampler.nonLinBlock = BysMcmc::Options::Scalar.Sampler::Arms;
    … …  
    6161Real estim::Run(0);
    6262
     63Matrix U0.mcmc = cycler::_.sampler::_.arm.blk::_.U0.mcmc;
     64Set U0.names = cycler::_.sampler::_.arm.blk::_.U0.names;
     65Set U.report = BysMcmc::Inference::report(
     66  "InitialValues",
     67  U0.names,
     68  bsr.config::GetReportConfig(0),
     69  U0.mcmc);
    6370
    6471Struct @CompareStruct
    … …  
    112119Set KDifChart = Extract(CompareTable,7);
    113120
     121Matrix U0.mcmc = cycler::_.sampler::_.arm.blk::_.U0.mcmc;
     122Set U0.names = cycler::_.sampler::_.arm.blk::_.U0.names;
     123
    114124/* */
    115125
Note: See TracChangeset for help on using the changeset viewer.