Commit b93eed3e authored by jmvalin's avatar jmvalin
Browse files

Trained some codebooks...


git-svn-id: http://svn.xiph.org/trunk/speex@3521 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent cd9157cb
......@@ -396,12 +396,6 @@ float *stack
float energy=0;
x=t+subvect_size*i;
#ifdef TRAINING
syn_filt_zero(x, awk1, e, nsf, p);
residue_zero(e, ak, e, nsf, p);
residue_zero(e, awk2, e, nsf,p);
#endif
for (k=0;k<subvect_size;k++)
energy+=x[k]*x[k];
/* Find best codeword for current sub-vector */
......@@ -467,9 +461,6 @@ float *stack
}
#ifdef TRAINING
accum_cb(e, best_index[0], r, subvect_size);
#endif
ind[i]=best_index[0];
/*printf ("best index: %d/%d\n", best_index, shape_cb_size);*/
......
This diff is collapsed.
This diff is collapsed.
......@@ -30,36 +30,36 @@
*/
float gain_cdbk_lbr[] = {
-0.076653, -0.400029, 0.248728, -0.153306, -0.800058, 0.497456, -0.0613268, 0.198997, 0.0381315, -0.00587568, -0.160023, -0.0618656,
-0.077132, 0.091150, -0.146274, -0.154264, 0.1823, -0.292548, 0.0140612, 0.0266658, -0.0225648, -0.00594935, -0.00830832, -0.0213961,
-0.312034, -0.001073, -0.317999, -0.624068, -0.002146, -0.635998, -0.000669625, -0.000682426, -0.198453, -0.0973652, -1.15133e-06, -0.101123,
0.292708, 0.924924, -0.112980, 0.585416, 1.84985, -0.22596, -0.541465, 0.208996, 0.0661403, -0.085678, -0.855484, -0.0127645,
0.437305, -0.181913, 0.263852, 0.87461, -0.363826, 0.527704, 0.159103, 0.0959962, -0.230768, -0.191236, -0.0330923, -0.0696179,
-0.130010, 0.684455, 0.300845, -0.26002, 1.36891, 0.60169, 0.177972, -0.41183, 0.0782257, -0.0169026, -0.468479, -0.0905077,
0.398347, 0.176107, 0.353970, 0.796694, 0.352214, 0.70794, -0.140303, -0.124673, -0.282006, -0.15868, -0.0310137, -0.125295,
0.424364, 0.564410, -0.211682, 0.848728, 1.12882, -0.423364, -0.479031, 0.238951, 0.17966, -0.180085, -0.318559, -0.0448093,
0.185387, -0.485193, -0.307452, 0.370774, -0.970386, -0.614904, 0.179897, -0.298347, 0.113995, -0.0343683, -0.235412, -0.0945267,
-0.074192, 0.917143, 0.124575, -0.148384, 1.83429, 0.24915, 0.136089, -0.228506, 0.0184849, -0.00550445, -0.841151, -0.0155189,
0.174834, 0.650922, -0.065446, 0.349668, 1.30184, -0.130892, -0.227607, 0.0852005, 0.0228844, -0.0305669, -0.423699, -0.00428318,
0.429503, 0.798689, -0.228999, 0.859006, 1.59738, -0.457998, -0.686079, 0.365798, 0.196712, -0.184473, -0.637904, -0.0524405,
-0.389157, -0.448296, 0.019225, -0.778314, -0.896592, 0.03845, -0.348915, 0.017237, 0.0149631, -0.151443, -0.200969, -0.000369601,
-0.152244, 0.474537, 0.146533, -0.304488, 0.949074, 0.293066, 0.144491, -0.139071, 0.0446175, -0.0231782, -0.225185, -0.0214719,
0.229525, 0.319147, 0.069499, 0.45905, 0.638294, 0.138998, -0.146504, -0.0443608, -0.0319035, -0.0526817, -0.101855, -0.00483011,
0.726268, 0.870713, 0.024152, 1.45254, 1.74143, 0.048304, -1.26474, -0.0420589, -0.0350816, -0.527465, -0.758141, -0.000583319,
0.015489, -0.249006, -0.033405, 0.030978, -0.498012, -0.06681, 0.00771371, -0.0166361, 0.00103482, -0.000239909, -0.062004, -0.00111589,
0.132693, 0.995311, 0.475460, 0.265386, 1.99062, 0.95092, -0.264142, -0.946461, -0.12618, -0.0176074, -0.990644, -0.226062,
0.132404, 0.513322, -0.211400, 0.264808, 1.02664, -0.4228, -0.135932, 0.217033, 0.0559804, -0.0175308, -0.263499, -0.04469,
0.036374, 1.077233, -0.015546, 0.072748, 2.15447, -0.031092, -0.0783665, 0.0334933, 0.00113094, -0.00132307, -1.16043, -0.000241678,
0.132328, 0.905322, -0.147946, 0.264656, 1.81064, -0.295892, -0.239599, 0.267878, 0.0391548, -0.0175107, -0.819608, -0.021888,
-0.156682, 0.900903, 0.309452, -0.313364, 1.80181, 0.618904, 0.282311, -0.557572, 0.0969711, -0.0245492, -0.811626, -0.0957605,
0.013532, 0.508207, 0.202289, 0.027064, 1.01641, 0.404578, -0.0137541, -0.205609, -0.00547475, -0.000183115, -0.258274, -0.0409208,
0.295740, 0.681799, 0.095068, 0.59148, 1.3636, 0.190136, -0.40327, -0.129635, -0.0562308, -0.0874621, -0.46485, -0.00903792,
0.061578, -0.738769, 0.092635, 0.123156, -1.47754, 0.18527, 0.0909838, 0.136872, -0.0114086, -0.00379185, -0.54578, -0.00858124,
0.027081, 0.834940, 0.020501, 0.054162, 1.66988, 0.041002, -0.045222, -0.0342342, -0.00111038, -0.000733381, -0.697125, -0.000420291,
0.033178, 0.016104, 0.054589, 0.066356, 0.032208, 0.109178, -0.0010686, -0.0017582, -0.00362231, -0.00110078, -0.000259339, -0.00297996,
0.174359, 0.527415, 0.383481, 0.348718, 1.05483, 0.766962, -0.183919, -0.404507, -0.133727, -0.0304011, -0.278167, -0.147058,
-0.247531, -0.458807, -0.314316, -0.495062, -0.917614, -0.628632, -0.227138, -0.288421, -0.155606, -0.0612716, -0.210504, -0.0987945,
-0.148492, 0.636958, 0.562524, -0.296984, 1.27392, 1.12505, 0.189166, -0.716608, 0.167061, -0.0220499, -0.405715, -0.316433,
0.044877, 0.204425, 0.071699, 0.089754, 0.40885, 0.143398, -0.018348, -0.0293141, -0.00643527, -0.00201395, -0.0417896, -0.00514075,
0.443971, 0.563942, -0.029569, 0.887942, 1.12788, -0.059138, -0.500748, 0.0333504, 0.0262556, -0.19711, -0.318031, -0.000874326,
0,0,0,0,0,0,0,0,0,0,0,0,
0.019578, -0.411369, 0.250244, 0.039156, -0.822738, 0.500488, 0.0161076, 0.205885, -0.00979855, -0.000383298, -0.169224, -0.0626221,
-0.141413, 0.127455, -0.177373, -0.282826, 0.25491, -0.354746, 0.0360476, 0.0452142, -0.0501657, -0.0199976, -0.0162448, -0.0314612,
-0.379174, 0.154715, -0.359933, -0.758348, 0.30943, -0.719866, 0.117328, 0.111374, -0.272954, -0.143773, -0.0239367, -0.129552,
0.295340, 1.014952, -0.144606, 0.59068, 2.0299, -0.289212, -0.599512, 0.293536, 0.0854159, -0.0872257, -1.03013, -0.0209109,
0.431555, -0.107415, 0.360701, 0.86311, -0.21483, 0.721402, 0.092711, 0.0774894, -0.311325, -0.18624, -0.011538, -0.130105,
-0.141305, 0.735394, 0.312635, -0.28261, 1.47079, 0.62527, 0.20783, -0.45982, 0.0883538, -0.0199671, -0.540804, -0.0977406,
0.382416, 0.267769, 0.318738, 0.764832, 0.535538, 0.637476, -0.204798, -0.170696, -0.243781, -0.146242, -0.0717002, -0.101594,
0.511146, 0.524061, -0.190435, 1.02229, 1.04812, -0.38087, -0.535743, 0.199599, 0.19468, -0.26127, -0.27464, -0.0362655,
0.153482, -0.531485, -0.149959, 0.306964, -1.06297, -0.299918, 0.163147, -0.159402, 0.046032, -0.0235567, -0.282476, -0.0224877,
-0.094091, 0.930054, 0.139366, -0.188182, 1.86011, 0.278732, 0.175019, -0.259236, 0.0262262, -0.00885312, -0.865, -0.0194229,
0.164167, 0.711936, -0.077780, 0.328334, 1.42387, -0.15556, -0.233753, 0.110749, 0.0255378, -0.0269508, -0.506853, -0.00604973,
0.503705, 0.823130, -0.273699, 1.00741, 1.64626, -0.547398, -0.829229, 0.45058, 0.275727, -0.253719, -0.677543, -0.0749111,
-0.330264, -0.613346, 0.085310, -0.660528, -1.22669, 0.17062, -0.405132, 0.104649, 0.0563496, -0.109074, -0.376193, -0.0072778,
-0.083597, 0.481953, 0.201470, -0.167194, 0.963906, 0.40294, 0.0805796, -0.194198, 0.0336846, -0.00698846, -0.232279, -0.0405902,
0.195682, 0.429066, 0.059682, 0.391364, 0.858132, 0.119364, -0.167921, -0.051215, -0.0233574, -0.0382914, -0.184098, -0.00356194,
0.598746, 1.523378, -0.189717, 1.19749, 3.04676, -0.379434, -1.82423, 0.578021, 0.227185, -0.358497, -2.32068, -0.0359925,
-0.010502, -0.257728, -0.018047, -0.021004, -0.515456, -0.036094, -0.00541332, -0.00930243, -0.000379059, -0.000110292, -0.0664237, -0.000325694,
-0.132438, 1.383543, 0.280042, -0.264876, 2.76709, 0.560084, 0.366467, -0.7749, 0.0741764, -0.0175398, -1.91419, -0.0784235,
0.234771, 0.555249, -0.210053, 0.469542, 1.1105, -0.420106, -0.260713, 0.233263, 0.0986287, -0.0551174, -0.308301, -0.0441223,
0.010973, 1.090455, -0.009557, 0.021946, 2.18091, -0.019114, -0.0239311, 0.020843, 0.000209738, -0.000120407, -1.18909, -9.13362e-05,
0.141315, 0.930896, -0.128939, 0.28263, 1.86179, -0.257878, -0.263099, 0.240058, 0.036442, -0.0199699, -0.866567, -0.0166253,
-0.168645, 0.950529, 0.314244, -0.33729, 1.90106, 0.628488, 0.320604, -0.597396, 0.105991, -0.0284411, -0.903505, -0.0987493,
-0.028768, 0.695554, 0.133637, -0.057536, 1.39111, 0.267274, 0.0400194, -0.185903, 0.00768894, -0.000827598, -0.483795, -0.0178588,
0.246305, 0.740436, 0.073124, 0.49261, 1.48087, 0.146248, -0.364746, -0.108287, -0.0360216, -0.0606662, -0.548245, -0.00534712,
0.280190, -0.787092, 0.268726, 0.56038, -1.57418, 0.537452, 0.441071, 0.423024, -0.150589, -0.0785064, -0.619514, -0.0722137,
0.010162, 0.894487, 0.006648, 0.020324, 1.78897, 0.013296, -0.0181796, -0.0118931, -0.000135114, -0.000103266, -0.800107, -4.41959e-05,
0.177218, 0.572144, 0.427882, 0.354436, 1.14429, 0.855764, -0.202788, -0.48962, -0.151657, -0.0314062, -0.327349, -0.183083,
-0.237882, -0.484537, -0.303846, -0.475764, -0.969074, -0.607692, -0.230525, -0.294449, -0.144559, -0.0565878, -0.234776, -0.0923224,
-0.211570, 0.684685, 0.539195, -0.42314, 1.36937, 1.07839, 0.289718, -0.738357, 0.228155, -0.0447619, -0.468794, -0.290731,
0.064373, 0.236576, 0.042304, 0.128746, 0.473152, 0.084608, -0.0304582, -0.0200162, -0.00544647, -0.00414388, -0.0559682, -0.00178963,
0.347794, 0.726175, -0.126887, 0.695588, 1.45235, -0.253774, -0.505119, 0.184284, 0.0882611, -0.120961, -0.52733, -0.0161003,
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment