uvex_transients.models.supernovae.IIp.TypeIIPSED.simulate#

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

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

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

Parameters:
Returns:

\(L_\nu(\nu, t)\), in erg/s/Hz. sample_parameters() always returns array-valued parameters, even for size=1, so the batch axis is never squeezed away here.

Return type:

Quantity

See also

eval

The underlying evaluation.

sample_parameters

The underlying sampling.