Ticket #58: hetland.py
| File hetland.py, 297 bytes (added by cdavid, 5 months ago) |
|---|
| Line | |
|---|---|
| 1 | from scikits import delaunay # or wherever your delaunay package lives these days |
| 2 | from numpy.random import rand |
| 3 | |
| 4 | xi, yi = rand(2, 1000) |
| 5 | x, y = rand(2, 100) |
| 6 | tri = delaunay.Triangulation(xi, yi) |
| 7 | |
| 8 | for n in range(100000): |
| 9 | interp = tri.nn_interpolator(rand(1000)) |
| 10 | z = interp(x, y) |
| 11 | |
| 12 | # Segfaults |
