def __init__(self,argsDict,typeFloat): ''' ''' MotionNoisyCos.__init__(self,argsDict,typeFloat) self._coughTime = np.random.rand()*30 # Time when happens the coughing self._coughOccured = False self._CoughFunc = [motionNoisyCos.buildNormDistrFunction(self._magnitude[i]/2.0 , self._stdevMag[i]/2.0) for i in range (3)]
def __init__(self,argsDict,typeFloat): ''' ''' MotionNoisyCos.__init__(self,argsDict,typeFloat) self._startHiccupTime = np.random.rand()*10 # Hiccup starts between 0 and 10 seconds after the beginning of the delivery self._hiccupPeriod = np.random.rand()*3 # Hiccup period between 0 and 3 seconds self._endHiccupTime = self._startHiccupTime + np.random.randint(1,nbMaxHiccup)*self._hiccupPeriod # Hiccup end: start time + nb of periods * period duration self._HiccupFunc = [motionNoisyCos.buildNormDistrFunction(self._magnitude[i]/2.0 , self._stdevMag[i]/2.0) for i in range (3)] self._lastHiccup = None