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

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