uvex_transients.models.arnett.LineBlanketedArnettDecaySED.sample_peak_luminosities#
- LineBlanketedArnettDecaySED.sample_peak_luminosities(bandpass: SpectralElement, n: int, *, t: Quantity | None = None, t_min: Quantity | None = None, t_max: Quantity | None = None, n_time: int | None = None, spacing: str = 'log', rng: RNGInput = None) Quantity#
Draw the parameters of
nevents from their priors and measure the peak band luminosity of each.This is a sample of the distribution of peak luminosity that the priors imply, the input to a luminosity function. A model has no notion of its own duration, so the time grid has to be given.
- Parameters:
bandpass (
SpectralElement) – The band; seeeval_band_luminosity().n (
int) – Number of events to draw.t (
Quantity, optional) – Rest-frame times since explosion, shape(T,), increasing, positive and fine enough to resolve the peak. If given, t_min, t_max, n_time and spacing are ignored.t_min (
Quantity, optional) – Ends of the grid of rest-frame times, used when t is not given.t_max (
Quantity, optional) – Ends of the grid of rest-frame times, used when t is not given.n_time (
int, optional) – Number of points of that grid. Required when t is not given.spacing (
{"log", "linear"}, optional) – How the grid is spaced between t_min and t_max.rng (
numpy.random.Generator,int, orNone, optional) – Random-number source; seesample_parameters().
- Returns:
The peak \(L_\mathrm{band}\) of each event in erg/s, shape
(n,).NaNfor an event with no valid epoch.- Return type:
- Raises:
ValueError – If the time grid is not specified, or is invalid; see ~uvex_transients.models.core.lightcurve_metrics.resolve_time_grid.
See also
peak_luminosityThe peak of given parameters.