Changeset 69fede85 in tol
- Timestamp:
- Nov 13, 2009, 4:10:32 PM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 5af2e15
- Parents:
- cc77af9
- Location:
- tol_pkg
- Files:
-
- 4 edited
-
GraphTools/test/define.random.graph.tol (modified) (2 diffs)
-
GraphTools/test/test_0001/test.tol (modified) (2 diffs)
-
MatQuery/test/test_0001/test.tol (modified) (1 diff)
-
MatQuery/test/test_0002/test.tol (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol_pkg/GraphTools/test/define.random.graph.tol
rcc77af9 r69fede85 15 15 16 16 Real If(ObjectExist("Real","vertex.num"), vertex.num, 17 vertex.num = IntRand(2,100 ) );17 vertex.num = IntRand(2,1000) ); 18 18 Real 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) ); 20 20 Real If(ObjectExist("Real","directed"), directed, 21 21 directed = IntRand(0,1) ); … … 41 41 Real graph::_.edge::add.feature.numeric("Hight"); 42 42 43 Matrix data = 43 VMatrix data = Mat2VMat( 44 44 { InOut = RandCombination(edge.num,vertex.num,2) } | 45 45 { Length = Rand(edge.num, 1, 10, 100) } | 46 { Hight = Rand(edge.num, 1, 1, 10) } ;46 { Hight = Rand(edge.num, 1, 1, 10) }); 47 47 48 48 Real graph::edge.build(data,removeRepeatedEdges); -
tol_pkg/GraphTools/test/test_0001/test.tol
rcc77af9 r69fede85 14 14 Real removeRepeatedEdges = True; 15 15 16 #Require GraphTools; 16 #Require GraphTools; 17 //#Embed "../../../_embed_all.tol"; 18 17 19 #Embed "../define.random.graph.tol"; 18 20 … … 57 59 }); 58 60 59 Real high = MatDat(data,edge.idx,4);61 Real high = VMatDat(data,edge.idx,4); 60 62 Real high.1 = graph::get.edge.feature(edge.idx,4); 61 63 Real high.2 = graph::get.edge.feature(edge.idx,"Hight"); -
tol_pkg/MatQuery/test/test_0001/test.tol
rcc77af9 r69fede85 18 18 WriteLn("Current Random Seed = "<<rndSeed); 19 19 20 #Require MatQuery; 20 #Require MatQuery; 21 //#Embed "../../../_embed_all.tol"; 21 22 22 23 //The order of magnitude required for number of geographic points -
tol_pkg/MatQuery/test/test_0002/test.tol
rcc77af9 r69fede85 13 13 Real numWar0 = Copy(NWarning); 14 14 15 #Require MatQuery; 15 #Require MatQuery; 16 //#Embed "../../../_embed_all.tol"; 16 17 17 18 Real t1 = Copy(Time); … … 28 29 WriteLn("Quantile time "<<(t2-t1)+" seconds"); 29 30 30 WriteLn("Classify ColumnByRank over edge's length... ");31 WriteLn("ClassifyRowsByRank over edge's length... "); 31 32 VMatrix length.class = MatQuery::ClassifyRowsByRank(Length, q); 32 33 Real t3 = Copy(Time); 33 WriteLn("Classify ColumnByRank time "<<(t3-t2)+" seconds");34 WriteLn("ClassifyRowsByRank time "<<(t3-t2)+" seconds"); 34 35 35 36 Real q.select = IntRand(2,Card(q)-1);
Note: See TracChangeset
for help on using the changeset viewer.
