SDEprob.py
def reducedW(self,dW,factor):
        """Returns dW 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(dW)-1)/factor
        if not newLen.is_integer():
            raise ValueError(("(len(dW)-1)/factor is not a whole number, but "
                +str(newLen)+"."))
        return dW[::factor]
Returns dW with 1/factor as many time steps.
Returns dW with 1/factor as many time steps.
Returns dW with 1 / factor as many time steps .
def reducedW(self,dW,factor):
        if type(factor) != int:
            if not factor.is_integer():
                raise ValueError(str(factor)+" is not an integer.")
        newLen = (len(dW)-1)/factor
        if not newLen.is_integer():
            raise ValueError(("(len(dW)-1)/factor is not a whole number, but "
                +str(newLen)+"."))
        return dW[::factor]
def reducedW ( self , dW , factor ) : if type ( factor ) != int : if not factor . is_integer ( ) : raise ValueError ( str ( factor ) + " is not an integer." ) newLen = ( len ( dW ) - 1 ) / factor if not newLen . is_integer ( ) : raise ValueError ( ( "(len(dW)-1)/factor is not a whole number, but " + str ( newLen ) + "." ) ) return dW [ : : factor ]
Returns dW with 1/factor as many time steps.
Returns dW with 1 / factor as many time steps .
"""Returns dW with 1/factor as many time steps."""
self
dW
factor