Article View: sci.fractals
Article #468pixel counting gone awry ?
From: Gerald Edgar
Date: Wed, 21 Apr 1993 17:08
Date: Wed, 21 Apr 1993 17:08
35 lines
2633 bytes
2633 bytes
After a few days for this to soak into my head, I have some comments. The "pixel counting" code is computing a Riemann sum. The function in question is 1 on the Cantor-like set, and 0 elsewhere. Now this set has empty interior and positive measure. This means that the function is not Riemann integrable. So it would not be a surprise if Riemann sums fail to converge to the integral--that is, pixel counting fails to converge to the measure of the set. There is a modified Riemann sum scheme that will converge to the Lebesgue integral, even when the function is not Riemann integrable. Still subdivide the interval into many short intervals. But don't use the left-hand endpoint of each of them: instead use a randomly chosen point of each interval. Determine whether your point is in the set or outside the set, accordingly count the point as "in" or "out", and continue as before. This will converge (with probability one) to the Lebesgue measure. By a random choice of a point in the interval, I do not mean merely a rational number with a large power of 2 as its denominator. I mean a random real number (which will be irrational...). Hope for computation with such a number is not futile, however. You would use your random number generator to compute successive bits of the number. You only have to generate bits until you know whether your number is in the set. As with the Mandelbrot set iteration, after a while you give up and say "in" even if it is uncertain. It might be interesting to implement this in Yuval Fisher's program and see what happens. -- Gerald A. Edgar Internet: edgar@mps.ohio-state.edu Department of Mathematics Bitnet: EDGAR@OHSTPY The Ohio State University telephone: 614-292-0395 (Office) Columbus, OH 43210 -292-4975 (Math. Dept.) -292-1479 (Dept. Fax)
Technical Details
Message-ID:
<1r3v25$r58@function.mps.ohio-state.edu>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!math.ohio-state.edu!not-for-mailReferences:
<1qnj79$h7f@network.ucsd.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10ed18,2c37ed05fbc7f3bd X-Google-Attributes: gid10ed18,public X-Google-Thread: ff06e,2c37ed05fbc7f3bd X-Google-Attributes: gidff06e,public X-Google-ArrivalTime: 1993-04-21 10:10:54 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!math.ohio-state.edu!not-for-mail From: edgar@math.ohio-state.edu (Gerald Edgar) Newsgroups: sci.fractals,bit.listserv.frac-l Subject: pixel counting gone awry ? Date: 21 Apr 1993 13:08:21 -0400 Organization: The Ohio State University, Dept. of Math. Lines: 35 Message-ID: <1r3v25$r58@function.mps.ohio-state.edu> References: <1qnj79$h7f@network.ucsd.edu> NNTP-Posting-Host: function.mps.ohio-state.edu