minke package

Submodules

minke.distribution module

minke.distribution.burst_dist(minimum, maximum, size=1)[source]

Generate an hrss drawn from the distribution [ r + 50/r ] as desired by the Burst group for observing MDCs

minke.distribution.even_time(start, stop, rate, jitter=0)[source]

Produce an evenly-distributed set of times which has some jitter.

Parameters:
start : int

The gps start time of the set.

stop : int

The gps end time of the set.

rate : int

The rate of events per year.

jitter : float

The number of seconds around which the time can “jitter”. This has the effect of adding a small random time on to each time returned in the distribution, up to a maximum of half the jitter value, or taking away up to half the jitter value.

Returns:
times : ndarray

A numpy array of gps times where injections should be made.

minke.distribution.favorable_sky(net, time)[source]

Wander through the skies, searching for a most favorable location — draw extrinsic parameters as if the network antenna pattern magnitude were the PDF.

minke.distribution.log_uniform(lower, upper, number)[source]

Draw uniformly in the log of a predefined range.

Parameters:
lower : float

The lower hrss value (n.b. not the lower log(hrss) value)

upper : float

The upper hrss value (n.b. not the upper log(hrss) value)

number : int

The number of samples to be drawn from the distribution.

Returns:
sample : float

An sample value drawn from the log uniform distribution.

minke.distribution.sky_params(net, time, ra, dec, psi, incl=3.141592653589793)[source]
minke.distribution.supernova_angle(num, divisions=10)[source]

Draw from a discrete distribution of angles.

minke.distribution.uniform_dec(num)[source]

Declination distribution: uniform in sin(dec). num controls the number of draws.

minke.distribution.uniform_interval(interval, num)[source]

Return a number, or a list of numbers which are sampled from a uniform distribution.

Parameters:
interval : tuple (lower, upper)

The interval which the uniform distribution covers.

num : int

The number of samples which should be drawn from the distribution.

Returns:
sample : float or list

A sample, or a list of samples.

Notes

http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.random_sample.html#numpy.random.random_sample

minke.distribution.uniform_phi(num)[source]

Uniform in (0, 2pi) distribution. num controls the number of draws.

minke.distribution.uniform_sky(number=1)[source]

Get a set of (RA, declination, polarization) randomized appopriately to astrophysical sources isotropically distributed in the sky.

minke.distribution.uniform_theta(num)[source]

Uniform in cos distribution. num controls the number of draws.

minke.distribution.uniform_time(tstart, tstop, number)[source]

Get a set of randomized (integer) event times.

minke.mdctools module

minke.sources module

Module contents