Module cma :: Class Misc
[hide private]
[frames] | no frames]

Class Misc

source code

object --+
         |
        Misc

Nested Classes [hide private]
  MathHelperFunctions
static convenience math helper functions, if the function name is preceded with an "a", a numpy array is returned
Instance Methods [hide private]

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

Static Methods [hide private]
 
likelihood(x, m=None, Cinv=None, sigma=1, detC=None)
return likelihood of x for the normal density N(m, sigma**2 * Cinv**-1)
source code
 
loglikelihood(self, x, previous=False)
return log-likelihood of x regarding the current sample distribution
source code
 
eig(C)
eigendecomposition of a symmetric matrix, much slower than numpy.linalg.eigh, return (EVals, Basis), the eigenvalues and an orthonormal basis of the corresponding eigenvectors, where
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

eig(C)
Static Method

source code 

eigendecomposition of a symmetric matrix, much slower than numpy.linalg.eigh, return (EVals, Basis), the eigenvalues and an orthonormal basis of the corresponding eigenvectors, where

Basis[i]
the i-th row of Basis
columns of Basis, [Basis[j][i] for j in range(len(Basis))]
the i-th eigenvector with eigenvalue EVals[i]