__init__(self,
vec1,
vec2,
reducer)
(Constructor)
|
|
@param vec1: a L{GeomAnalyzerBase} that computes director
@param vec2: a L{GeomAnalyzerBase} that computes descriptor
@type reducer: a callable that reduces the results of C{vec1} and
C{vec2} to order parameter for each frame
Typically both director and descriptor return Nx3 vectors for each
frame, where N depends on the context. In this case, one should make
sure that the orders of these vectors match. For example, if both
director and descriptor give one vector per molecule, then the
implementation should guarantee the molecule orders are the same in
vec1() and vec2().
For axis director which returns 1x3 vector, reduction with descriptor
is taken care of by numpy broadcasting. For more complicated cases
where director and descriptor have incompatible dimensions, the user
needs to provide special-purpose reduce function, see
L{SmartsDirector.reduce_vec} for example.
- Overrides:
object.__init__
|