Changeset f84924c in tol for tol_tests


Ignore:
Timestamp:
Feb 3, 2009, 9:21:52 AM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
8a2250d
Parents:
151dc42
Message:

Just traces

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

Location:
tol_tests/tol/random_generation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol_tests/tol/random_generation/test_0003/test.tol

    r151dc42 rf84924c  
    88  Text summary_ =
    99   "Test of coherence and completeness of truncated bi-normal" ;
     10
     11  Real PutRandomSeed(0);
     12  Real rnd_seed=GetRandomSeed(0);
     13  WriteLn("rnd_seed "+IntText(rnd_seed));
     14
     15  Real numErr0 = Copy(NError);
    1016
    1117//We go to divide the real plane in 4 quadrants and draw a bidimensional
    … …  
    104110  Real ph  = p1^h;
    105111
     112  Real numErr1 = Copy(NError);
     113
    106114//Extented information about test behaviour
    107115  Set partialResults_ =
    108116  [[
     117    numErr0,
     118    numErr1,
    109119    r00,r01,r10,r11
    110120  ]];
    111121//This is a messure of the success of the test
    112   Real quality_ = And(r00,r01,r10,r11)*(1-ph);
     122  Real quality_ = And(numErr1 == numErr0,r00,r01,r10,r11)*(1-ph);
    113123
    114124//Return the results
  • tol_tests/tol/random_generation/test_0004/test.tol

    r151dc42 rf84924c  
    99   "Test of UniKerDnsEstOptBnw" ;
    1010
    11   Real numErr0 = Copy(NError);
    12 
    13   Real PutRandomSeed(3245324);
     11  Real PutRandomSeed(0);
    1412  Real rnd_seed=GetRandomSeed(0);
    1513  WriteLn("rnd_seed "+IntText(rnd_seed));
    1614
     15  Real numErr0 = Copy(NError);
     16
     17  WriteLn("TRACE 1");
    1718  Real   modes = IntRand(10,10);
    1819  Matrix nu    = Rand(modes,1,-100, +100);
    … …  
    2728  };
    2829  Matrix Nmode = Tra(RandMultinomial(1, N, Tra(weight)));
     30//WriteLn("TRACE 2");
    2931
    3032  Real Dens(Real x)
    … …  
    4244  Set BMTFile([[X]],   "X.bmt");
    4345
     46//WriteLn("TRACE 3");
    4447  Matrix F     = Frequency(X,100);
    4548  Real   parts = 1000;
    … …  
    4851  Matrix T     = Tra(SetMat([[r]]));
    4952  Real   t0    = Copy(Time);
     53//WriteLn("TRACE 3.1");
    5054  Matrix KD    = UniKerDnsEstOptBnw(X,T,0,2,1.E-3);
     55//WriteLn("TRACE 3.2");
    5156  Real   tm    = Copy(Time)-t0;
    5257  WriteLn("Time for UniKerDnsEstOptBnw "<<tm+" / "+IntText(N)+"="<<(tm/N));
    … …  
    5661    [[f]]
    5762  }));
     63//WriteLn("TRACE 4");
    5864  Matrix CmpKde = T | KD | D;
    5965  Set BMTFile([[CmpKde]],"CmpKde.bmt");
    … …  
    6571  Real MatAvr(KD);
    6672  Real MatAvr(D);
     73//WriteLn("TRACE 5");
    6774
    6875  Real numErr1 = Copy(NError);
    … …  
    7178  Set partialResults_ =
    7279  [[
    73     Real ok    = numErr1 == numErr0;
     80    numErr0,
     81    numErr1,
    7482    Real okStd = difStdErr < Sqrt(1/Rows(X))
    7583  ]];
    7684//This is a messure of the success of the test
    77   Real quality_ = And(ok,okStd);
     85  Real quality_ = And(numErr1 == numErr0,okStd);
    7886
     87//WriteLn("TRACE 6");
    7988//Return the results
    8089  Set resultStr_ = strTestStatus(summary_, link_, quality_,
Note: See TracChangeset for help on using the changeset viewer.