Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/p/y/pymeg-HEAD/meg/pca.py   pymeg(Download)
 
from Numeric import *
from MLab import svd, std, cov
 
class PCA:
 
        # Do the single value decomposition
        [U,S_values,V_trans] = svd(inputMatrix)
 
        S = zeros((len(S_values),len(S_values)), Float)