Statistical cavity characterization using time- and frequency-domain excitation