Anthony Minessale efd3744a21 FS-7122: Working with william to find a better way пре 9 година
..
Makefile.am efd3744a21 FS-7122: Working with william to find a better way пре 9 година
README 68913681a4 git status -u, learn something new every day. пре 12 година
create_interleaver.c 68913681a4 git status -u, learn something new every day. пре 12 година
de.c 68913681a4 git status -u, learn something new every day. пре 12 година
dvdongle2.c 68913681a4 git status -u, learn something new every day. пре 12 година
extract.c d67b96af8a i've tested, now you can too пре 12 година
ge_train.c 68913681a4 git status -u, learn something new every day. пре 12 година
genampdata.c 68913681a4 git status -u, learn something new every day. пре 12 година
genlsp.c d67b96af8a i've tested, now you can too пре 12 година
genphdata.c 68913681a4 git status -u, learn something new every day. пре 12 година
genres.c d67b96af8a i've tested, now you can too пре 12 година
lsp1.txt 62b55523c2 Working codec2 support пре 14 година
lsp10.txt 62b55523c2 Working codec2 support пре 14 година
lsp2.txt 62b55523c2 Working codec2 support пре 14 година
lsp3.txt 62b55523c2 Working codec2 support пре 14 година
lsp4.txt 62b55523c2 Working codec2 support пре 14 година
lsp45678910.txt 17294cb608 grr more пре 12 година
lsp5.txt 62b55523c2 Working codec2 support пре 14 година
lsp6.txt 62b55523c2 Working codec2 support пре 14 година
lsp7.txt 62b55523c2 Working codec2 support пре 14 година
lsp8.txt 62b55523c2 Working codec2 support пре 14 година
lsp9.txt 62b55523c2 Working codec2 support пре 14 година
lspd123.txt 62b55523c2 Working codec2 support пре 14 година
lspd456.txt 62b55523c2 Working codec2 support пре 14 година
lspd678910.txt 17294cb608 grr more пре 12 година
lspd78.txt 62b55523c2 Working codec2 support пре 14 година
lspd910.txt 62b55523c2 Working codec2 support пре 14 година
lspjnd5-10.txt 17294cb608 grr more пре 12 година
lspsync.c 68913681a4 git status -u, learn something new every day. пре 12 година
lsptest.c 62b55523c2 Working codec2 support пре 14 година
mksine.c 68913681a4 git status -u, learn something new every day. пре 12 година
polar2rect.c 68913681a4 git status -u, learn something new every day. пре 12 година
pre.c 68913681a4 git status -u, learn something new every day. пре 12 година
run_tests.sh 68913681a4 git status -u, learn something new every day. пре 12 година
scalarlsptest.c 68913681a4 git status -u, learn something new every day. пре 12 година
sd.c d67b96af8a i've tested, now you can too пре 12 година
sd.h d67b96af8a i've tested, now you can too пре 12 година
speexlsptest.c 68913681a4 git status -u, learn something new every day. пре 12 година
t48_8.c 68913681a4 git status -u, learn something new every day. пре 12 година
tcodec2.c d67b96af8a i've tested, now you can too пре 12 година
tcontphase.c d67b96af8a i've tested, now you can too пре 12 година
tfdmdv.c 68913681a4 git status -u, learn something new every day. пре 12 година
tfifo.c 68913681a4 git status -u, learn something new every day. пре 12 година
tinterp.c d67b96af8a i've tested, now you can too пре 12 година
tlspsens.c 68913681a4 git status -u, learn something new every day. пре 12 година
tnlp.c d67b96af8a i've tested, now you can too пре 12 година
tprede.c 68913681a4 git status -u, learn something new every day. пре 12 година
tquant.c d67b96af8a i've tested, now you can too пре 12 година
tsrc.c 68913681a4 git status -u, learn something new every day. пре 12 година
vq_train_jvm.c 68913681a4 git status -u, learn something new every day. пре 12 година
vqtrain.c d67b96af8a i've tested, now you can too пре 12 година
vqtrainjnd.c 59205c7678 sigh... git you failed пре 12 година
vqtrainph.c 68913681a4 git status -u, learn something new every day. пре 12 година
vqtrainsp.c 68913681a4 git status -u, learn something new every day. пре 12 година

README

README
for codec2/unittest
Created David Rowe 31 July 2012

Training (experimental) sparse phase VQs:

1/ In ../src/phase.c phase_experiment() enable:

print_sparse_pred_error()

and 'make' c2sim (in src)

2/ Run over a training database:

$ ./c2sim /xhome1/codec2/samples/train.spc --phaseexp > train_phtrain.txt

a) check stats in Octave:
octave> load ../src/train_phtrain.txt
octave> std(nonzeros(train_phtrain(:,1:20)))
octave> hist(nonzeros(train_phtrain(:,1:20)),20)
3/ Extract and convert to floats vector you wish to train for example
first 20 (out of MAX_AMP == 80):

$ ./extract ../src/train_phtrain.txt train_phtrain.flt 1 20

4/ Convert to rectangular:

$ ./polar2rect train_phtrain.flt train_phtrainr.flt

5/ Run this program:

$ ./vqtrainph train_phtrainr.flt 20 1024 vq.txt

Ouput is vq.txt

Tests
-----

+ build up insmallest possible stesp
+ impl errors v alg errors
+ use actual phase data as codebook
+ test vq with rand phases first or known data