| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
param.parameterized.Parameterized --+
|
base.patterngenerator.PatternGenerator --+
|
Composite
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
generators = param.List(default= [Constant(scale= 0.0)], preceList of patterns to use in the composite pattern. |
|||
operator = param.Parameter(numpy.maximum, precedence= 0.98, doBinary Numpy function used to combine the individual patterns. |
|||
size = param.Number(default= 1.0, doc= "Scaling factor appliedScaling factor applied to all sub-patterns. |
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
|
|
|||
generatorsList of patterns to use in the composite pattern. The default is a blank pattern, and should thus be overridden for any useful work.
|
operatorBinary Numpy function used to combine the individual patterns. Any binary Numpy array "ufunc" returning the same type of array as the operands and supporting the reduce operator is allowed here. Supported ufuncs include: add subtract multiply divide maximum minimum remainder power logical_and logical_or logical_xor The most useful ones are probably add and maximum, but there are uses for at least some of the others as well (e.g. to remove pieces of other patterns). You can also write your own operators, by making a class that has a static method named "reduce" that returns an array of the same size and type as the arrays in the list. For example:
class return_first(object):
@staticmethod
def reduce(x):
return x[0]
|
sizeScaling factor applied to all sub-patterns.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Oct 12 22:26:34 2008 | http://epydoc.sourceforge.net |