Ejemplo n.º 1
0
    def applyPreconditioner(self, arr):
        """
        """
        m = arr[self.mask].mean()
        arr[self.mask] -= m

        psLib.trace("moby", 3, "MeanRemover: Mean = %f" % m)
Ejemplo n.º 2
0
    def applyPreconditioner(self, arr):
        """
        """
        m = arr[self.mask].mean()
        arr[self.mask] -= m

        psLib.trace("moby", 3, "MeanRemover: Mean = %f" % m)
Ejemplo n.º 3
0
 def applyPreconditioner(self, arr):
     """
     @brief divides arr by self.weight
     @param arr numpy array to precondition
     """
     arr *= self.invWeight
     psLib.trace("moby", 3, "Divide by Weight: mean = %f" % arr.mean())
Ejemplo n.º 4
0
 def applyPreconditioner(self, arr):
     """
     @brief divides arr by self.weight
     @param arr numpy array to precondition
     """
     arr *= self.invWeight
     psLib.trace("moby", 3, "Divide by Weight: mean = %f" % arr.mean())