Ejemplo n.º 1
0
 def __init__(self, *predicates):
     BinaryPredicate1D.__init__(self)
     self.predicates = tuple(predicates)
     correct_types = all(isinstance(p, BinaryPredicate1D) for p in self.predicates)
     if not (correct_types and predicates):
         raise TypeError("%s: Expected one or more BinaryPredicate1D, got %r" %
                 (self.__class__.__name__, self.predicates))
Ejemplo n.º 2
0
 def __init__(self, *predicates):
     BinaryPredicate1D.__init__(self)
     self.predicates = tuple(predicates)
     correct_types = all(isinstance(p, BinaryPredicate1D) for p in self.predicates)
     if not (correct_types and predicates):
         raise TypeError("%s: Expected one or more BinaryPredicate1D, got %r" %
                         (self.__class__.__name__, self.predicates))
Ejemplo n.º 3
0
 def __init__(self, predicate):
     BinaryPredicate1D.__init__(self)
     self.predicate = predicate
Ejemplo n.º 4
0
 def __init__(self, angle):
     BinaryPredicate1D.__init__(self)
     self.angle = angle
Ejemplo n.º 5
0
 def __init__(self, angle):
     BinaryPredicate1D.__init__(self)
     self.angle = angle
Ejemplo n.º 6
0
 def __init__(self):
     BinaryPredicate1D.__init__(self)
     random.seed = 1
Ejemplo n.º 7
0
 def __init__(self, *predicates):
     BinaryPredicate1D.__init__(self)
     self._predicates = predicates
     if len(self.predicates) < 2:
         raise ValueError("Expected two or more BinaryPredicate1D, got ",
                          len(predictates))
Ejemplo n.º 8
0
 def __init__(self, l, sampling=2.0):
     BinaryPredicate1D.__init__(self)
     self._GetGradient = pyViewMapGradientNormF1D(l, IntegrationType.MEAN)
Ejemplo n.º 9
0
 def __init__(self, iType=IntegrationType.MEAN):
     BinaryPredicate1D.__init__(self)
     self.func = GetZF1D(iType)
Ejemplo n.º 10
0
 def __init__(self, predicate):
     BinaryPredicate1D.__init__(self)
     self._predicate = predicate
Ejemplo n.º 11
0
 def __init__(self, *predicates):
     BinaryPredicate1D.__init__(self)
     self._predicates = predicates
     if len(self.predicates) < 2:
         raise ValueError("Expected two or more BinaryPredicate1D, got ", len(predictates))
Ejemplo n.º 12
0
 def __init__(self, pred1, pred2):
     BinaryPredicate1D.__init__(self)
     self.__pred1 = pred1
     self.__pred2 = pred2
Ejemplo n.º 13
0
 def __init__(self, iType=IntegrationType.MEAN):
     BinaryPredicate1D.__init__(self)
     self._GetZ = GetZF1D(iType)
Ejemplo n.º 14
0
 def __init__(self, pred):
     BinaryPredicate1D.__init__(self)
     self.__pred = pred
Ejemplo n.º 15
0
 def __init__(self, pred1, pred2):
     BinaryPredicate1D.__init__(self)
     self.__pred1 = pred1
     self.__pred2 = pred2
Ejemplo n.º 16
0
 def __init__(self, iType=IntegrationType.MEAN):
     BinaryPredicate1D.__init__(self)
     self.func = GetProjectedYF1D(iType)
Ejemplo n.º 17
0
 def __init__(self, iType=IntegrationType.MEAN):
     BinaryPredicate1D.__init__(self)
     self._GetZDiscontinuity = ZDiscontinuityF1D(iType)
Ejemplo n.º 18
0
 def __init__(self, iType=IntegrationType.MEAN):
     BinaryPredicate1D.__init__(self)
     self._GetZDiscontinuity = ZDiscontinuityF1D(iType)
Ejemplo n.º 19
0
 def __init__(self):
     BinaryPredicate1D.__init__(self)
     random.seed = 1
Ejemplo n.º 20
0
 def __init__(self, l, sampling=2.0):
     BinaryPredicate1D.__init__(self)
     self._GetGradient = pyViewMapGradientNormF1D(l, IntegrationType.MEAN)