mutis.lib Package

Utility functions and classes used throughout MUTIS.

Functions

fgen_wrapper(fgen, t, y, fgen_params)

Wrapper for all lc_gen_* functions, so as not to duplicate code.

gen_times_canopy(t1, t2[, dtmin, dtmax, ...])

Returns a non-uniform t, dt time binning for use with adaptative binning methods.

gen_times_rawab(t1, t2[, dt0, ndtmax, ...])

LEGACY.

gen_times_uniform(t1, t2[, dtm, tmin, tmax, ...])

Returns an uniform t, dt time binning for use with adaptative binning methods.

get_grid(a, b)

kroedel(t1, d1, t2, d2, t, dt)

Krolik & Edelson (1988) correlation with adaptative binning.

kroedel_old(t1, d1, t2, d2, t, dt)

Krolik & Edelson (1988) correlation with adaptative binning.

lc_gen_ou(theta, mu, sigma, times[, scale, loc])

Generation from an OU process integrating the stochastic differential equation.

lc_gen_psd_c(ts, values, times)

Generation using interpolated PSD for light curves with similar PSD, mean and std.

lc_gen_psd_fft(values)

Generation using Welch algorithm and the FFT, of synthetic signals with similar PSD, mean and std.

lc_gen_psd_lombscargle(times, values)

Generation using Lomb-Scargle algorithm and the non-uniform FFT, of synthetic signals with similar PSD, mean and std.

lc_gen_psd_nft(times, values)

Generation using the non-uniform FFT of synthetic signals with similar PSD, mean and std.

lc_gen_samp(signs)

Generation by sampling np.random.choice with same mean and std

memoize(f)

Decorator for recursive memoization.

nindcf(t1, s1, t2, s2)

Computes the normalised correlation of two discrete signals (interpolating them).

welsh(t1, d1, t2, d2, t, dt)

Welsh (1999) correlation with adaptative binning.

welsh_old(t1, d1, t2, d2, t, dt)

Welsh (1999) correlation with adaptative binning.