public final float[] readFloat(int len) throws IOException { float[] ret = new float[len]; for (int i = 0; i < len; i++) ret[i] = readFloat(); return ret; }
public final float[] readFloat(int len) throws IOException { float[] ret = new float[len]; for (int i = 0; i < len; i++) ret[i] = readFloat(); return ret; }
public final float readFloatEndian() throws IOException { float ret = readFloat(); return ret; }
public final float readFloatEndian() throws IOException { float ret = readFloat(); return ret; }
public static void readMfccsFromFloat(MaryRandomAccessFile stream, MfccFileHeader params, double[][] outputMfccs) throws IOException { if (stream != null && params.numfrm > 0 && params.dimension > 0) { int i, j; for (i = 0; i < params.numfrm; i++) { for (j = 0; j < params.dimension; j++) outputMfccs[i][j] = (double) (stream.readFloat()); } stream.close(); } }
public static void readMfccsFromFloat(MaryRandomAccessFile stream, MfccFileHeader params, double[][] outputMfccs) throws IOException { if (stream != null && params.numfrm > 0 && params.dimension > 0) { int i, j; for (i = 0; i < params.numfrm; i++) { for (j = 0; j < params.dimension; j++) outputMfccs[i][j] = (double) (stream.readFloat()); } stream.close(); } }
public static double[][] readMfccsFromFloat(MaryRandomAccessFile stream, MfccFileHeader params) throws IOException { double[][] mfccs = null; if (stream != null && params.numfrm > 0 && params.dimension > 0) { mfccs = new double[params.numfrm][params.dimension]; int i, j; for (i = 0; i < mfccs.length; i++) { for (j = 0; j < mfccs[i].length; j++) mfccs[i][j] = (double) (stream.readFloat()); } stream.close(); } return mfccs; }
public static double[][] readMfccsFromFloat(MaryRandomAccessFile stream, MfccFileHeader params) throws IOException { double[][] mfccs = null; if (stream != null && params.numfrm > 0 && params.dimension > 0) { mfccs = new double[params.numfrm][params.dimension]; int i, j; for (i = 0; i < mfccs.length; i++) { for (j = 0; j < mfccs[i].length; j++) mfccs[i][j] = (double) (stream.readFloat()); } stream.close(); } return mfccs; }