"""Delay between arrival of consecutive particles in s"""
"""Delay between arrival of consecutive particles in s"""
returnnp.diff(self.hittimes)
returnnp.diff(self.hittimes)
defhitcounts(self,dt):
defhitcounts(self,dt,dt2=None):
"""Particle counts per time bin
"""Particle counts per time bin
Re-samples the timestamps into an equally spaced time series with counts per unit time
Re-samples the timestamps into an equally spaced time series with counts per unit time
:param dt: width in s of time bin for counting.
:param dt: width in s of time bin for counting.
:param dt2: width in s of makro time bin. If not None, this function returns a 2D array with time resolution dt2 along the first and dt along the second axis
:returns: (count_array, bin_edges) in units of (1, second)
:returns: (count_array, bin_edges) in units of (1, second)
"""
"""
# re-sample timestamps into equally sampled time series
# re-sample timestamps into equally sampled time series of shape [length/dt]