Changeset 69fede85 in tol


Ignore:
Timestamp:
Nov 13, 2009, 4:10:32 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
5af2e15
Parents:
cc77af9
Message:

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

Location:
tol_pkg
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tol_pkg/GraphTools/test/define.random.graph.tol

    rcc77af9 r69fede85  
    1515
    1616Real If(ObjectExist("Real","vertex.num"), vertex.num,
    17   vertex.num = IntRand(2,100) );
     17  vertex.num = IntRand(2,1000) );
    1818Real If(ObjectExist("Real","edge.num"), edge.num,
    19   edge.num = IntRand(1,(vertex.num)^1.6) );
     19  edge.num = IntRand(1,(vertex.num)^1.5) );
    2020Real If(ObjectExist("Real","directed"), directed,
    2121 directed = IntRand(0,1) );
    … …  
    4141Real graph::_.edge::add.feature.numeric("Hight");
    4242
    43 Matrix data =
     43VMatrix data = Mat2VMat(
    4444  { InOut  = RandCombination(edge.num,vertex.num,2) } |
    4545  { Length = Rand(edge.num, 1, 10, 100) } |
    46   { Hight  = Rand(edge.num, 1,  1,  10) };
     46  { Hight  = Rand(edge.num, 1,  1,  10) });
    4747
    4848Real graph::edge.build(data,removeRepeatedEdges);
  • tol_pkg/GraphTools/test/test_0001/test.tol

    rcc77af9 r69fede85  
    1414Real removeRepeatedEdges = True;
    1515
    16 #Require GraphTools;
     16  #Require GraphTools;
     17//#Embed "../../../_embed_all.tol";
     18
    1719#Embed "../define.random.graph.tol";
    1820
    … …  
    5759});
    5860
    59 Real high = MatDat(data,edge.idx,4);
     61Real high = VMatDat(data,edge.idx,4);
    6062Real high.1 = graph::get.edge.feature(edge.idx,4);
    6163Real high.2 = graph::get.edge.feature(edge.idx,"Hight");
  • tol_pkg/MatQuery/test/test_0001/test.tol

    rcc77af9 r69fede85  
    1818WriteLn("Current Random Seed = "<<rndSeed);
    1919
    20 #Require MatQuery;
     20  #Require MatQuery;
     21//#Embed "../../../_embed_all.tol";
    2122
    2223//The order of magnitude required for number of geographic points
  • tol_pkg/MatQuery/test/test_0002/test.tol

    rcc77af9 r69fede85  
    1313Real numWar0 = Copy(NWarning);
    1414
    15 #Require MatQuery;
     15  #Require MatQuery;
     16//#Embed "../../../_embed_all.tol";
    1617
    1718Real t1 = Copy(Time);
    … …  
    2829WriteLn("Quantile time "<<(t2-t1)+" seconds");
    2930
    30 WriteLn("ClassifyColumnByRank over edge's length... ");
     31WriteLn("ClassifyRowsByRank over edge's length... ");
    3132VMatrix length.class = MatQuery::ClassifyRowsByRank(Length, q);
    3233Real t3 = Copy(Time);
    33 WriteLn("ClassifyColumnByRank time "<<(t3-t2)+" seconds");
     34WriteLn("ClassifyRowsByRank time "<<(t3-t2)+" seconds");
    3435
    3536Real q.select = IntRand(2,Card(q)-1);
Note: See TracChangeset for help on using the changeset viewer.