gen_times_uniform

mutis.lib.gen_times_uniform(t1, t2, dtm=None, tmin=None, tmax=None, nbinsmin=121, n=200)[source]

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

The time interval on which the correlation is defined is split in n bins. Bins with a number of point less than nbinsmin are discarded.

Parameters
t1np.ndarray

Times of the first signal.

t2np.ndarray

Times of the second signal.

tminfloat

Start of the time intervals (if not specified, start of the interval on which the correlation is define).

tmaxfloat

End of the time intervals (if not specified, end of the interval on which the correlation is define).

nbinsminfloat

Minimum of points falling on each bin.

nfloat

Number of bins in which to split (needs not to be the number of bins returned).

Returns
tndarray

Time binning on which to compute the correlation.

dtndarray

Size of the bins defined by t

nbndarray

Number of points falling on each bin defined by t and dt.