Mercurial Hosting > traffic-intelligence
comparison python/tests/utils.txt @ 32:48e56179c39e
added ceil function
author | Nicolas Saunier <nico@confins.net> |
---|---|
date | Sat, 10 Apr 2010 18:58:43 -0400 |
parents | c000f37c316d |
children | 1a2ac2d4f53a |
comparison
equal
deleted
inserted
replaced
31:c000f37c316d | 32:48e56179c39e |
---|---|
5 0.0 | 5 0.0 |
6 >>> computeChi2(range(1,10),range(1,10)) | 6 >>> computeChi2(range(1,10),range(1,10)) |
7 0.0 | 7 0.0 |
8 >>> computeChi2(range(1,9),range(1,10)) | 8 >>> computeChi2(range(1,9),range(1,10)) |
9 0.0 | 9 0.0 |
10 | |
11 >>> ceilDecimals(1.23, 0) | |
12 2.0 | |
13 >>> ceilDecimals(1.23, 1) | |
14 1.3 | |
10 | 15 |
11 >>> segmentIntersection(Point(0,0),Point(1,1), Point(0,1), Point(1,2)) | 16 >>> segmentIntersection(Point(0,0),Point(1,1), Point(0,1), Point(1,2)) |
12 >>> segmentIntersection(Point(0,1),Point(1,0), Point(0,2), Point(2,1)) | 17 >>> segmentIntersection(Point(0,1),Point(1,0), Point(0,2), Point(2,1)) |
13 >>> segmentIntersection(Point(0,0),Point(2,0), Point(1,-1),Point(1,1)) | 18 >>> segmentIntersection(Point(0,0),Point(2,0), Point(1,-1),Point(1,1)) |
14 (1.000000,0.000000) | 19 (1.000000,0.000000) |