km3astro.random
¶
Random sampling utilities.
Module Contents¶
Functions¶
|
Draw azimuth, uniformly distributed. |
|
Draw zenith, uniformly distributed in cos(zen). |
|
Sample random times from an interval (in seconds). |
|
Draw equidistant samples (fixed stepsize) from interval. |
|
Create random dates in the given year. |
- km3astro.random.random_zenith(n=1, unit='rad')[source]¶
Draw zenith, uniformly distributed in cos(zen).
- km3astro.random.second_from_interval(start, stop, n=1, **randargs)[source]¶
Sample random times from an interval (in seconds).