What does Acoustics and the Psychology of Built Space conclude, in numbers, about “Trees outside the Window: Fractal Dimension and Biophilic Design”?

Answer: Ulrich's 1984 comparison of records (23 pairs; 7.96 versus 8.70 days in hospital) opened research on window views, but it was not a randomised trial and has not been directly replicated; a systematic review gives attention restoration theory only partial support. Fractal dimension can be measured by box counting, but at finite resolution rough curves are underestimated and the result depends on the range of scales. Natural forms have widely spread values of \(D\); 1.3–1.5 is where group preference peaks, with clear individual differences; the skin-conductance and EEG evidence comes from preliminary studies of 24 and 32 people. In the illustrative calculation a box-like skyline has \(D\) of about 1.0 and a rough tree line about 1.5. The next chapter discusses two other visible spatial variables: light and ceiling height.

Scope of the numbers: This book is not medical advice; problems with hearing or sleep call for a doctor. Marked boxes separate published evidence, runnable Python calculations (15 programs, all checked), classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 32

curve true D box-count D, e1/4..1/128 e = 1/16..1/256
straight line1.000 1.001 1.000
Koch curve1.262 1.300 1.245
fBm profile H0.9 1.100 1.210 1.135
fBm profile H0.7 1.300 1.293 1.261
fBm profile H0.5 1.500 1.379 1.399
fBm profile H0.3 1.700 1.520 1.537
window view D (e1/8..1/128) D (e = 1/32..1/512)
block skyline1.04 1.00
mountain ridge (H 0.7)1.28 1.21
rough tree line (H 0.3)1.48 1.45
blocks behind trees1.13 1.09

Key formula

\[D = \lim_{\varepsilon\to 0}\frac{\log N(\varepsilon)}{\log(1/\varepsilon)},\]
Show the full program
# Box-counting dimension: cover a curve in the unit square with boxes of side e = 2^-k,
# count occupied boxes N(e), fit log N against log(1/e). Part 1: test curves of known D
# (a line, the Koch curve, fractional-Brownian profiles with D = 2 - H). Part 2: four
# synthetic window views.
import math, random

def box_dim(pts, kmin, kmax):
    xs, ys = [], []
    for k in range(kmin, kmax + 1):
        e = 2.0 ** -k
        top = 2 ** k - 1
        boxes = {(min(int(x / e), top), min(int(y / e), top)) for x, y in pts}
        xs.append(k * math.log(2)); ys.append(math.log(len(boxes)))
    mx, my = sum(xs) / len(xs), sum(ys) / len(ys)
    sxy = sum((a - mx) * (b - my) for a, b in zip(xs, ys))
    return sxy / sum((a - mx) ** 2 for a in xs)

def densify(pts, step=1e-3):                 # add points so no gap exceeds `step`
    out = [pts[0]]
    for (x0, y0), (x1, y1) in zip(pts, pts[1:]):
        n = max(1, int(math.hypot(x1 - x0, y1 - y0) / step) + 1)
        out += [(x0 + (x1 - x0) * i / n, y0 + (y1 - y0) * i / n) for i in range(1, n + 1)]
    return out

def koch(level):
    pts = [(0.0, 0.0), (1.0, 0.0)]
    for _ in range(level):
        new = [pts[0]]
        for (x0, y0), (x1, y1) in zip(pts, pts[1:]):
            dx, dy = (x1 - x0) / 3, (y1 - y0) / 3
            a, b = (x0 + dx, y0 + dy), (x0 + 2 * dx, y0 + 2 * dy)
            r3 = math.sqrt(3) / 2
            peak = (a[0] + dx / 2 - dy * r3, a[1] + dy / 2 + dx * r3)
            new += [a, peak, b, (x1, y1)]
        pts = new
    return [(x, y * 3 + 0.05) for x, y in pts]           # stretch into the unit square

def fbm(H, seed, n=11):                 # random midpoint displacement, scaled to 0..1
    rng = random.Random(seed)
    N = 2 ** n
    y, step, scale = [0.0] * (N + 1), N, 1.0
    while step > 1:
        half = step // 2
        scale *= 0.5 ** H
        for i in range(half, N, step):
            y[i] = (y[i - half] + y[i + half]) / 2 + rng.gauss(0, scale)
        step = half
    lo, hi = min(y), max(y)
    return [(v - lo) / (hi - lo) for v in y]

line = lambda y, y0=0.05, span=0.9: densify([(i / (len(y) - 1), y0 + span * v)
                                             for i, v in enumerate(y)])
CURVES = [("straight line", 1.0, densify([(0.0, 0.1), (1.0, 0.9)])),
          ("Koch curve", math.log(4) / math.log(3), densify(koch(7)))]
CURVES += [(f"fBm profile H = {H}", 2 - H, line(fbm(H, 31, 12)))
           for H in (0.9, 0.7, 0.5, 0.3)]
print(f"{'curve':20s} true D   box-count D, e = 1/4..1/128   e = 1/16..1/256")
for name, D, p in CURVES:
    print(f"{name:20s}  {D:.3f}            {box_dim(p, 2, 7):.3f}"
          f"                {box_dim(p, 4, 8):.3f}")

rng = random.Random(7)                       # block skyline: random widths and heights
B, i = [0.0] * 2049, 0
while i < 2049:
    w, h = rng.randint(60, 260), rng.uniform(0.25, 0.85)
    B[i:i + w] = [h] * len(B[i:i + w]); i += w
TREES = [0.1 + 0.5 * v for v in fbm(0.3, 5)]
VIEWS = {"block skyline": B,
         "mountain ridge (H 0.7)": [0.2 + 0.6 * v for v in fbm(0.7, 3)],
         "rough tree line (H 0.3)": TREES,
         "blocks behind trees": [max(b, t) for b, t in zip(B, TREES)]}
print(f"{'window view':25s} D (e = 1/8..1/128)   D (e = 1/32..1/512)")
for name, y in VIEWS.items():
    p = line(y)
    print(f"{name:25s}     {box_dim(p, 3, 7):.2f}                {box_dim(p, 5, 9):.2f}")

Single source and citation

Fan, Y. (2026). Architectural Acoustics, Reverberation Time and the Environmental Psychology of Built Space (Version 1.0.0), Chapter 4: Trees outside the Window: Fractal Dimension and Biophilic Design. 5D Library. https://doi.org/10.5281/zenodo.23782090

DOI: 10.5281/zenodo.23782090 · Read the monograph · 5DL-B-031 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026031,
  author    = {Fan, Yafu},
  title     = {Architectural Acoustics, Reverberation Time and the Environmental Psychology of Built Space},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.23782090},
  url       = {https://doi.org/10.5281/zenodo.23782090}
}

Other chapter answers in this book