def runningAverage(self, diameter=3, algo="uniform"):

        if diameter%2 == 0:
            warnings.warn("Diameter must be an odd integer")
            return None
        if algo=="uniform":
            kernel=list(1/float(diameter)*np.ones(diameter))
        elif algo=="gaussian":
            kernel=list()
            r=float(diameter)/2
            for i in range(-int(r),int(r)+1):
                kernel.append(np.exp(-i**2/(2*(r/3)**2))/(np.sqrt(2*np.pi)*(r/3)))
        retVal = LineScan(map(int,self.convolve(kernel)))
        retVal._update(self)
        return retVal
Return the SMT representation of a REIL instruction.
dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/LineScan.py/LineScan.runningAverage--crossover with--dataset/ETHPy150Open programa-stic/barf-project/barf/barf/core/smt/smttranslator.py/SmtTranslator.translate