public final char[] readCharEndian(int len) throws IOException { char[] ret = new char[len]; for (int i = 0; i < len; i++) ret[i] = readCharEndian(); return ret; }
public final char[] readCharEndian(int len) throws IOException { char[] ret = new char[len]; for (int i = 0; i < len; i++) ret[i] = readCharEndian(); return ret; }
public void read(MaryRandomAccessFile stream) throws IOException { featureDimension = stream.readIntEndian(); totalComponents = stream.readIntEndian(); isDiagonalCovariance = stream.readBooleanEndian(); int tmpLen = stream.readIntEndian(); if (tmpLen > 0) info = String.copyValueOf(stream.readCharEndian(tmpLen)); weights = stream.readDoubleEndian(totalComponents); components = new GaussianComponent[totalComponents]; for (int i = 0; i < totalComponents; i++) { components[i] = new GaussianComponent(); components[i].read(stream); } } }
public void read(MaryRandomAccessFile stream) throws IOException { featureDimension = stream.readIntEndian(); totalComponents = stream.readIntEndian(); isDiagonalCovariance = stream.readBooleanEndian(); int tmpLen = stream.readIntEndian(); if (tmpLen > 0) info = String.copyValueOf(stream.readCharEndian(tmpLen)); weights = stream.readDoubleEndian(totalComponents); components = new GaussianComponent[totalComponents]; for (int i = 0; i < totalComponents; i++) { components[i] = new GaussianComponent(); components[i].read(stream); } } }
if (fp2 != null) { b2 = fp2.readBooleanEndian(); c2 = fp2.readCharEndian(); s2 = fp2.readShortEndian(); i2 = fp2.readIntEndian();
if (fp2 != null) { b2 = fp2.readBooleanEndian(); c2 = fp2.readCharEndian(); s2 = fp2.readShortEndian(); i2 = fp2.readIntEndian();