uvex_transients.models.spectra.powerlaw.PowerLawSpectrum.simulate#

PowerLawSpectrum.simulate(nu: Quantity, size: int = 1, *, rng: RNGInput = None) → Quantity#

Draw random parameter realizations and evaluate the model at the given frequency.

Equivalent to self.eval(nu, **self.sample_parameters(size=size, rng=rng)).

Parameters:
Returns:

\(S(\nu)\), in 1/Hz.

Return type:

Quantity

See also

eval

The underlying evaluation.

sample_parameters

The underlying sampling.