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

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/p/y/PyPursuit-1.1.0/examples/pymp_tutorial2.py   PyPursuit(Download)
dico = Dico(scales)
# Launching decomposition, stops either at 20 dB of SRR or 2000 iterations
app, dec = mp.mp(signal, dico, 20, 2000, pad=False)
 
app.atom_number
lomp_dico = LODico(scales)
lomp_app, lomp_dec = mp.mp(
    signal, lomp_dico, 20, 2000, pad=False)
lomp_snr, lomp_bitrate, lomp_quantized_app = mp_coder.simple_mdct_encoding(
    lomp_app, 2000, Q=14, shift_penalty=True)
print (lomp_snr, lomp_bitrate)
 
rssmp_dico = SequenceDico(scales)
rsssmp_app, rssmp_dec = mp.mp(signal, rssmp_dico, 20, 2000, pad=False)
 
print " now at a much larger level : a snr of nearly 40 dB and around 20 Kbps"
app, dec = mp.mp(signal, dico, 40, 20000, pad=False)
snr, bitrate, quantized_app = mp_coder.simple_mdct_encoding(
    app, 64000, Q=16)
 
lomp_app, lomp_dec = mp.mp(
    signal, lomp_dico, 40, 20000, pad=False)
lomp_snr, lomp_bitrate, lomp_quantized_app = mp_coder.simple_mdct_encoding(
    lomp_app, 64000, Q=16, shift_penalty=True)

src/p/y/PyPursuit-1.1.0/examples/pymp_tutorial4.py   PyPursuit(Download)
target_srr = 5
max_atom_num = 200
app_1, _ = mp.mp(sig_occ1, dico, target_srr, max_atom_num)
app_2, _ = mp.mp(sig_occ2, dico, target_srr, max_atom_num)