Debian Codegraph @

inst/READ_ME

raw
1
2 This package computes and plots the Dirichlet (Voronoi) tesselation
3 and the Delaunay triangulation of a set of of data points and
4 possibly a superimposed ``grid'' of dummy points.
5
6 The tesselation is constructed with respect to the whole plane
7 by suspending it from ideal points at infinity.
8
9 ORIGINALLY PROGRAMMED BY: Rolf Turner in 1987/88, while with the
10 Division of Mathematics and Statistics, CSIRO, Sydney, Australia.
11 Re-programmed by Rolf Turner to adapt the implementation from a
12 stand-alone Fortran program to an S function, while visiting the
13 University of Western Australia, May 1995. Further revised
14 December 1996, October 1998, April 1999, and February 2002.
15 Adapted to an R package 21 February 2002.
16
17 This R package continues to be revised and updated from time to time.
18
19 Current address of the author:
20
21 Department of Statistics
22 University of Auckland
23 Private Bag 92019
24 Auckland 1142
25 New Zealand
26 Email:
27 [email protected]
28
29 The author gratefully acknowledges the contributions, assistance,
30 and guidance of Mark Berman, of D.M.S., CSIRO, in collaboration with
31 whom this project was originally undertaken. The author also
32 acknowledges much useful advice from Adrian Baddeley, formerly of
33 D.M.S. CSIRO (now Professor of Statistics at Curtin University in
34 Western Australia). Daryl Tingley of the Department of Mathematics
35 and Statistics, University of New Brunswick provided some helpful
36 insight. Special thanks are extended to Alan Johnson, of the Alaska
37 Fisheries Science Centre, who supplied two data sets which were
38 extremely valuable in tracking down some errors in the code.
39
40 Don MacQueen, of Lawrence Livermore National Lab, wrote an Splus
41 driver function for the old stand-alone version of this software.
42 That driver, which was available on Statlib, is now deprecated in
43 favour of this current package. Don also collaborated in the
44 preparation of this current package.
45
46 Bill Dunlap of MathSoft Inc. tracked down a bug which was making
47 the deldir() function crash on some systems, and pointed out some
48 other improvements to be made.
49
50 Berwin Turlach of the Department of Maths and Stats at the
51 University of Western Australia pointed out a bug in the procedure
52 for eliminating duplicated points.
53
54 Many others have contributed to the package over the years by
55 pointing out bugs and suggesting fixes. Most of these contributors
56 are acknowledged in the ChangeLog and possibly in the help files.
57 I apologise to those whom I have overlooked or neglected to include.
58 It's just ineptitude, not malice!
59
60 The Fortran code contained in the src directory, is ponderous
61 --- it was automatically generated from Ratfor code. This code
62 can be found in the directory inst/ratfor. The Ratfor code
63 was pretty ponderous to start with. It is quite possibly very
64 kludgy as well --- i.e. a good programmer could make it ***much***
65 more efficient I'm sure. It contains all sorts of checking for
66 anomalous situations most of which probably can/will never occur.
67 These checks basically reflect my pessimism and fervent belief in
68 Murphy's Law.
69
70 The program was also designed with a particular application
71 in mind, in which Mark Berman and I wished to superimpose a
72 grid of dummy points onto the actual data points which we were
73 triangulating. This fact adds slightly to the complication of
74 the code.
75
76 *****************************
77
78 Here follows a brief description of the package:
79
80 (1) The function deldir computes the Delaunay Triangulation (and
81 hence the Dirichlet Tesselation) of a planar point set according to
82 the second (iterative) algorithm of Lee and Schacter, International
83 Journal of Computer and Information Sciences, Vol. 9, No. 3, 1980,
84 pages 219 to 242.
85
86 The tesselation/triangulation is made to be
87
88 **** with respect to the whole plane ****
89
90 by `suspending' it from `ideal' points (-Inf,-Inf), (Inf,-Inf)
91 (Inf,Inf), and (-Inf,Inf).
92
93 (2) The tesselation/triangulation is also enclosed in a finite
94 rectangle with corners
95
96 (xmin,ymax) * ------------------------ * (xmax,ymax)
97 | |
98 | |
99 | |
100 | |
101 | |
102 (xmin,ymin) * ------------------------ * (xmax,ymin)
103
104 The boundaries of this rectangle truncate some Dirichlet tiles, in
105 particular any infinite ones. This rectangle is referred to
106 elsewhere as `the' rectangular window.
107 ===