uvex_transients.transients.kilonovae.Kilonova.sample_event_count#

Kilonova.sample_event_count(solid_angle: Quantity, duration: Quantity = None, t_start: Time = None, t_end: Time = None, seed: SeedSequence | int | None = None, sampling_factor: float | None = None) → int#

Sample the number of events in a given solid angle and duration.

Parameters:
  • solid_angle (Quantity) – The solid angle over which to sample events.

  • duration (Quantity, optional) – The duration over which to sample events. Mutually exclusive with t_start/t_end; see _resolve_duration.

  • t_start (Time, optional) – The start/end of the sampling window, used to derive duration if it isn’t supplied directly. See _resolve_duration.

  • t_end (Time, optional) – The start/end of the sampling window, used to derive duration if it isn’t supplied directly. See _resolve_duration.

  • seed (numpy.random.SeedSequence, int, or None, optional) – Root seed for reproducibility; see uvex_transients.utils.split_root_seed.

  • sampling_factor (float, optional) – Multiplier on the physical rate, so the count is drawn from a Poisson distribution with mean sampling_factor times the expected number of events. The default is None (1, the physical rate). See sample_events_on_healpix_grid.

Returns:

The sampled number of events.

Return type:

int