2
0
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