scml.scml2019.helpers ===================== .. py:module:: scml.scml2019.helpers Functions --------- .. autoapisummary:: scml.scml2019.helpers.pos_gauss scml.scml2019.helpers._safe_max scml.scml2019.helpers.zero_runs Module Contents --------------- .. py:function:: pos_gauss(mu, sigma) Returns a sample from a rectified gaussian .. py:function:: _safe_max(a, b) .. py:function:: zero_runs(a: numpy.array) -> numpy.array Finds all runs of zero in an array :param a: Input array (assumed to be 1D) :returns: A 2D array giving beginning and end (exclusive) of zero stretches in the input array. :rtype: np.array