i
i
i
i
i
i
i
i
320 14. Sampling
one might want to know the average length of a line through [0, 1]
2
. That is, by
definition,
average(length) =
#
lines L through [0, 1]
2
length(L)dμ(L)
#
lines L through [0, 1]
2
dμ(L)
.
All that is left, once we know that, is choosing the appropriate μ for the applica-
tion. This is dealt with for lines in the next section.
14.1.2 Example: Measures on the Lines in the 2D Plane
What measure μ is “natural”?
If you parameterize the lines as y = mx + b, you might think of a given line
as a point (m, b) in “slope-intercept” space. An easy measure to use would be
dm db, but this would not be a “good” measure in that not all equal size “bundles”
of lines would have the same measure. More precisely, the measure would not be
Figure 14.1. These
two bundles of lines should
have the same measure.
They have different inter-
section lengths with the
y
-axis so using
db
would be
a poor choice for a differen-
tial measure.
invariant with respect to change of coordinate system. For example, if you took
all lines through the square [0, 1]
2
, the measure of lines through it would not be
the same as the measure through a unit square rotated forty-five degrees. What
we would really like is a “fair” measure that does not change with rotation or
translation of a set of lines. This idea is illustrated in Figures 14.1 and 14.2.
To develop a natural measure on the lines, we should first start thinking of
them as points in a dual space. This is a simple concept: the line y = mx + b
can be specified as the point (m, b) in a slope-intercept space. This concept is
illustrated in Figure 14.3. It is more straightforward to develop a measure in
(φ, b) space. In that space b is the y-intercept, while φ is the angle the line makes
with the x-axis, as shown in Figure 14.4. Here, the differential measure dφ db
almost works, but it would not be fair due to the effect shown in Figure 14.1. To
Figure 14.2. These
two bundles of lines should
have the same measure.
Since they have different
values for change in slope,
using
dm
would be a poor
choice for a differential
measure.
account for the larger span b that a constant width bundle of lines makes, we must
add a cosine factor:
dμ =cosφdφdb.
It can be shown that this measure, up to a constant, is the only one that is invariant
with respect to rotation and translation.
This measure can be converted into an appropriate measure for other param-
eterizations of the line. For example, the appropriate measure for (m, b) space
is
dμ =
dm db
(1 + m
2
)
3
2
.