本文整理汇总了Java中be.ac.ulg.montefiore.run.jahmm.OpdfMultiGaussian类的典型用法代码示例。如果您正苦于以下问题:Java OpdfMultiGaussian类的具体用法?Java OpdfMultiGaussian怎么用?Java OpdfMultiGaussian使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OpdfMultiGaussian类属于be.ac.ulg.montefiore.run.jahmm包,在下文中一共展示了OpdfMultiGaussian类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: read
import be.ac.ulg.montefiore.run.jahmm.OpdfMultiGaussian; //导入依赖的package包/类
public OpdfMultiGaussian read(StreamTokenizer st)
throws IOException, FileFormatException
{
HmmReader.readWords(st, keyword(), "[");
double[] means = OpdfReader.read(st, -1);
double[][] covariance = new double[means.length][];
HmmReader.readWords(st, "[");
for (int l = 0; l < covariance.length; l++)
covariance[l] = OpdfReader.read(st, means.length);
HmmReader.readWords(st, "]");
HmmReader.readWords(st, "]");
return new OpdfMultiGaussian(means, covariance);
}
示例2: write
import be.ac.ulg.montefiore.run.jahmm.OpdfMultiGaussian; //导入依赖的package包/类
public void write(Writer writer, OpdfMultiGaussian opdf)
throws IOException
{
writer.write("MultiGaussianOPDF [ ");
write(writer, opdf.mean());
writer.write(" [");
for (double[] line : opdf.covariance()) {
writer.write(" ");
write(writer, line);
}
writer.write(" ] ]");
}
示例3: read
import be.ac.ulg.montefiore.run.jahmm.OpdfMultiGaussian; //导入依赖的package包/类
public OpdfMultiGaussian read(StreamTokenizer st)
throws IOException, FileFormatException
{
HmmReader.readWords(st, keyword(), "[");
double[] means = OpdfReader.read(st, -1);
double[][] covariance = new double[means.length][];
HmmReader.readWords(st, "[");
for (int l = 0; l < covariance.length; l++)
covariance[l] = OpdfReader.read(st, means.length);
HmmReader.readWords(st, "]");
return new OpdfMultiGaussian(means, covariance);
}