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