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/PyPursuit-1.1.0/examples/pymp_tutorial4.py   PyPursuit(Download)
from PyMP.mdct import Dico
from PyMP import mp, Signal
from PyMP.tools.Misc import euclid_dist, hamming_dist
 
# Decomposing and visualizing the sparse dec
sp_vec_2 = app_2.to_array()[0]
 
print "%1.5f, %1.5f"%(euclid_dist(sp_vec_1,sp_vec_2), hamming_dist(sp_vec_1,sp_vec_2)) 
 
# Now the information distance