// Delay bound analysis using horizontal deviation (hDev)
// Given arrival curve alpha and service curve beta, the worst-case delay is:
// D = sup{ t: alpha(t) > beta(t) } = hDev(alpha, beta)
// Example: arrival at 1000 bytes/s with burst 100, service at 2000 bytes/s with latency 20ms
// Expected delay bound: D = (100 + 0) / 2000 + 0.02 = 0.07 = 7/100 seconds

arrival := bucket(1000, 100)
service := ratency(2000, 0.02)
delay_bound := hDev(arrival, service)
delay_bound