Vessel-movement observatory · Strait crossing data · 24 months
Loading…
Self-test
Frame-rate:
Movements by class over time
Speed vs draught
Hourly heatmap (weekday × hour)
Movements by destination
Speed distribution
Method
Scale maths: Linear mapping d→r via m·d + b. Invert via (p−b)/m. Round-trip error < 1e−9. Nice-number ticks use Scott 1999: round range to nearest 1/2/5 × 10n, place ticks from floor to ceiling.
Binning rule: Freedman–Diaconis, width = 2 × IQR / n1/3. Bin count clamped to [8, 40]. Stated in distribution panel.
Index structure: 2D quadtree (capacity 16, recursive subdivision) for spatial tooltip lookup. O(log n) nearest-point search avoids linear scan of 60 000 rows.
Re-aggregation: Single-pass O(n) filter → aggregate. Each record visited once. Buckets: byMonthClass[24][5], byDest[8], weekdayHour[7][24]. Scatter uses canvas grid binning when >2 000 points.
Data generation: Seeded LCG PRNG (glibc: a=1664525, c=1013904223). Box–Muller for Gaussian noise. Speed/draught/class correlate via class profiles. Anomaly rate 8% passenger/container, 4% other.
Colour: Distinct hue-based palette for stacked areas (blue, green, amber, rose, purple). Heatmap: blue–yellow sequential.
Reference block: 12 brute-force aggregates on full dataset. Incremental results match within tolerance 0.01.