pool.setFeature(NUM_SENONES, numStates);
pool.setFeature(NUM_STREAMS, numStreams);
pool.setFeature(NUM_GAUSSIANS_PER_STATE, numGaussiansPerState);
int ncoefs = getNcoefs();
for (int i = 0; i < numStates; i++) {
GMMDiag gmm = hmmsHTK.gmms.get(i);
for (int j = 0; j < numGaussiansPerState; j++) {
float[] vars = new float[ncoefs];
for (int k = 0; k < ncoefs; k++) {
// TODO: check: shall we put inverse vars here ?
vars[k] = gmm.getVar(j, k);
}
Utilities.floorData(vars, varianceFloor);
int id = i * numGaussiansPerState + j;
// the order of the vars is the order in the HMMSet.gmms
// vector which is the order of appearance in the MMF file