SDEprob.py
def reduceTime(self,t,factor):
        """Returns time vector with 1/factor as many time steps."""
        if type(factor) != int:
            if not factor.is_integer():
                raise ValueError(str(factor)+" is not an integer.")
        newLen = (len(t)-1)/factor
        if not newLen.is_integer():
            raise ValueError(("(len(t)-1)/factor is not a whole number, but "
                +str(newLen)+"."))
        return np.linspace(t[0],t[-1],newLen)
Returns time vector with 1/factor as many time steps.
Returns time vector with 1/factor as many time steps.
Returns time vector with 1 / factor as many time steps .
def reduceTime(self,t,factor):
        if type(factor) != int:
            if not factor.is_integer():
                raise ValueError(str(factor)+" is not an integer.")
        newLen = (len(t)-1)/factor
        if not newLen.is_integer():
            raise ValueError(("(len(t)-1)/factor is not a whole number, but "
                +str(newLen)+"."))
        return np.linspace(t[0],t[-1],newLen)
def reduceTime ( self , t , factor ) : if type ( factor ) != int : if not factor . is_integer ( ) : raise ValueError ( str ( factor ) + " is not an integer." ) newLen = ( len ( t ) - 1 ) / factor if not newLen . is_integer ( ) : raise ValueError ( ( "(len(t)-1)/factor is not a whole number, but " + str ( newLen ) + "." ) ) return np . linspace ( t [ 0 ] , t [ - 1 ] , newLen )
Returns time vector with 1/factor as many time steps.
Returns time vector with 1 / factor as many time steps .
"""Returns time vector with 1/factor as many time steps."""
self
t
factor