freeswitch/libs/libcodec2/unittest
William King 51f2442a9e resolve an automake warning about subdirs on latest automake
Latest automake will detect then warn if the Makefile uses source
files that are in subdirectories, but the subdirs option is not
set. In the FreeSWITCH build system the current expected behavior is
to expect the subdirs option to be enabled.

FS-7122 #resolve
2015-01-07 10:04:29 -08:00
..
Makefile.am resolve an automake warning about subdirs on latest automake 2015-01-07 10:04:29 -08:00
README git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
create_interleaver.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
de.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
dvdongle2.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
extract.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
ge_train.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
genampdata.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
genlsp.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
genphdata.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
genres.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
lsp1.txt
lsp2.txt
lsp3.txt
lsp4.txt
lsp5.txt
lsp6.txt
lsp7.txt
lsp8.txt
lsp9.txt
lsp10.txt
lsp45678910.txt grr more 2012-12-20 20:14:35 -06:00
lspd78.txt
lspd123.txt
lspd456.txt
lspd910.txt
lspd678910.txt grr more 2012-12-20 20:14:35 -06:00
lspjnd5-10.txt grr more 2012-12-20 20:14:35 -06:00
lspsync.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
lsptest.c
mksine.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
polar2rect.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
pre.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
run_tests.sh git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
scalarlsptest.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
sd.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
sd.h i've tested, now you can too 2012-12-20 20:08:42 -06:00
speexlsptest.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
t48_8.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
tcodec2.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
tcontphase.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
tfdmdv.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
tfifo.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
tinterp.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
tlspsens.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
tnlp.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
tprede.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
tquant.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
tsrc.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
vq_train_jvm.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
vqtrain.c i've tested, now you can too 2012-12-20 20:08:42 -06:00
vqtrainjnd.c sigh... git you failed 2012-12-20 20:15:24 -06:00
vqtrainph.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
vqtrainsp.c git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00

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