关于「窗外的树:分形维数与亲生命设计」,《建筑声学与空间环境心理学》给出的定量结论是什么?

结论:乌尔里希 1984 年的病历比较(23 对,住院 7.96 对 8.70 天)开启了对「窗外景观」的研究,但它不是随机试验,也没有直接重复;注意恢复理论的系统综述只给出部分支持。分形维数可以用盒计数法测量,但有限分辨率下会低估粗糙曲线,结果依赖尺度范围。自然形态的 \(D\) 分布很宽,1.3–1.5 是群体偏好的峰值,个体差异明显;皮肤电与脑电的证据来自 24 人与 32 人的初步研究。示意计算中,方盒子楼房的窗景 \(D\) 约 1.0,粗糙树冠线约 1.5。下一章讨论另外两个看得见的空间变量:光与层高。

数据口径:本书不是医疗建议;听力、睡眠问题请就医。 书中以标注框区分已发表的证据、可运行的 Python 计算(15 段程序,全部核对)、原典与作者的假说。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 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

核心公式

\[D = \lim_{\varepsilon\to 0}\frac{\log N(\varepsilon)}{\log(1/\varepsilon)},\]
查看完整验算程序
# 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}")

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《建筑声学、混响时间与空间环境心理学的物理模型》第 4 章「窗外的树:分形维数与亲生命设计」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23782090

DOI: 10.5281/zenodo.23782090 · 阅读本章所在专著 · 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}
}

本书其他章节结论