A tiny, teaching-grade simulator with a clean CLI to reproduce the exponential decay law, add background counts, and estimate λ & half-life from data.
Highlights
raddecay simulate
(deterministic / MC), isotope presets + unitsdata/runs/<timestamp>
with last
symlinkraddecay analyze
for λ and T½ fit# MC run (lambda direct) + plots
raddecay simulate --mode mc --lambda 0.2 --n0 2000 --tmax 5 --dt 0.1 --seed 1 --plot
# Preset isotope (F-18, minutes) + analysis
raddecay simulate --mode mc --isotope f18 --half-life-unit min --n0 100000 --tmax 240 --dt 1 --seed 42 --plot
raddecay analyze --run-dir data/runs/last --out images