Package mdp :: Package utils :: Class MultipleCovarianceMatrices
[hide private]
[frames] | no frames]

Class MultipleCovarianceMatrices


Container class for multiple covariance matrices to easily execute operations on all matrices at the same time. Note: all operations are done in place where possible.
Instance Methods [hide private]
 
__getitem__(self, item)
 
__init__(self, covs)
Insantiate with a sequence of covariance matrices.
 
copy(self)
Return a deep copy of the instance.
 
permute(self, indices)
Swap two columns and two rows of all matrices, whose indices are specified as [i,j].
 
rotate(self, angle, indices)
Rotate matrices by angle in the plane defined by indices [i,j].
 
symmetrize(self)
Symmetrize matrices: C -> (C+C^T)/2 .
 
transform(self, trans_matrix)
Apply a linear transformation to all matrices, defined by the transformation matrix.
 
weight(self, weights)
Apply a weighting factor to matrices. Argument can be a sequence or a single value. In the latter case the same weight is applied to all matrices.

Inherited from unreachable.newobject: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__getitem__(self, item)
(Indexing operator)

 

__init__(self, covs)
(Constructor)

 
Insantiate with a sequence of covariance matrices.
Overrides: object.__init__

copy(self)

 
Return a deep copy of the instance.

permute(self, indices)

 
Swap two columns and two rows of all matrices, whose indices are specified as [i,j].

rotate(self, angle, indices)

 
Rotate matrices by angle in the plane defined by indices [i,j].

symmetrize(self)

 
Symmetrize matrices: C -> (C+C^T)/2 .

transform(self, trans_matrix)

 
Apply a linear transformation to all matrices, defined by the transformation matrix.

weight(self, weights)

 
Apply a weighting factor to matrices. Argument can be a sequence or a single value. In the latter case the same weight is applied to all matrices.