def go_PCA(com1=0, com2=1):
    data = Generic()
    data.n = 26
    data.img_src = ["C:/vision/calibrialpha/calibri-" + chr(97 + i) + ".png" for i in range(data.n)]
    data.M = zeros((26, 26))
    for (a, b, c, wid) in trips:
        data.M[a, b] += 1
        data.M[a, c] -= 1
        data.M[b, a] += 1
        data.M[c, a] -= 1
    tools.center_mat(data.M)
    [data.U, data.sss, data.Vh] = linalg.svd(data.M.T)
    PCA(data, (com1, com2)).mainloop()
Beispiel #2
0
def go_PCA(com1=0,com2=1):
    data = Generic()
    data.n = 26
    data.img_src = [ "C:/vision/calibrialpha/calibri-"+chr(97+i)+".png"  for i in range(data.n) ]
    data.M = zeros((26,26))
    for (a,b,c,wid) in trips:
        data.M[a,b]+=1
        data.M[a,c]-=1
        data.M[b,a]+=1
        data.M[c,a]-=1        
    tools.center_mat(data.M)
    [data.U,data.sss,data.Vh]=linalg.svd(data.M.T)
    PCA(data,(com1,com2)).mainloop()
Beispiel #3
0
def go_PCA(com1=0,com2=1):
    data = Generic()
    data.n = n
    data.img_src = [ "C:/matlab/fonts/"+id_locs[ids[i]]  for i in range(data.n) ]
    data.M = zeros((data.n,data.n))
    for (a,b,c) in trips2:
        data.M[a,b]-=1
        data.M[a,c]+=1
        data.M[b,a]-=1
        data.M[c,a]+=1        
    tools.center_mat(data.M)
    [data.U,data.sss,data.Vh]=linalg.svd(data.M.T)
    PCA(data,(com1,com2)).mainloop()
Beispiel #4
0
def go_PCA(com1=0, com2=1):
    data = Generic()
    data.n = n
    data.img_src = [
        "C:/matlab/fonts/" + id_locs[ids[i]] for i in range(data.n)
    ]
    data.M = zeros((data.n, data.n))
    for (a, b, c) in trips2:
        data.M[a, b] -= 1
        data.M[a, c] += 1
        data.M[b, a] -= 1
        data.M[c, a] += 1
    tools.center_mat(data.M)
    [data.U, data.sss, data.Vh] = linalg.svd(data.M.T)
    PCA(data, (com1, com2)).mainloop()