THzTools#

Global options#

get_option(key)

Get global option.

reset_option([key])

Reset one or more global options to default values.

set_option(key, value)

Set global option.

Noise model#

NoiseModel(sigma_alpha, sigma_beta, sigma_tau)

Dataclass to describe the time-domain noise model.

NoiseResult(noise_model, mu, a, eta, fval, ...)

Dataclass for the output of noisefit.

noisefit(x, *[, dt, sigma_alpha0, ...])

Estimate noise model from a set of nominally identical waveforms.

Parameter estimation#

FitResult(p_opt, p_err, p_cov, mu_opt, ...)

Dataclass for the output of fit.

fit(frfun, xdata, ydata, p0[, noise_parms, ...])

Fit a parameterized frequency response function to time-domain data.

Waveform utilities#

apply_frf(frfun, x, *[, dt, ...])

Apply a frequency response function to a waveform.

scaleshift(x, *[, dt, a, eta, axis])

Rescale and shift waveforms.

timebase(n, *[, dt, t_init])

Timebase for time-domain waveforms.

wave(n, *[, dt, t0, a, taur, tauc, fwhm])

Simulate a terahertz waveform.