コード例 #1
0
ファイル: preconditioner.py プロジェクト: amaurea/flipper
    def applyPreconditioner(self, arr):
        """
        """
        m = arr[self.mask].mean()
        arr[self.mask] -= m

        psLib.trace("moby", 3, "MeanRemover: Mean = %f" % m)
コード例 #2
0
ファイル: preconditioner.py プロジェクト: giuspugl/flipper
    def applyPreconditioner(self, arr):
        """
        """
        m = arr[self.mask].mean()
        arr[self.mask] -= m

        psLib.trace("moby", 3, "MeanRemover: Mean = %f" % m)
コード例 #3
0
ファイル: preconditioner.py プロジェクト: amaurea/flipper
 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())
コード例 #4
0
ファイル: preconditioner.py プロジェクト: giuspugl/flipper
 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())