hmmstatearc.java

来自「It is the Speech recognition software. 」· Java 代码 · 共 66 行

JAVA
66
字号
/* * Copyright 1999-2002 Carnegie Mellon University.   * Portions Copyright 2002 Sun Microsystems, Inc.   * Portions Copyright 2002 Mitsubishi Electric Research Laboratories. * All Rights Reserved.  Use is subject to license terms. *  * See the file "license.terms" for information on usage and * redistribution of this file, and for a DISCLAIMER OF ALL  * WARRANTIES. * */package edu.cmu.sphinx.linguist.acoustic;/** * Represents a transition to single state in an HMM * * All probabilities are maintained in linear base */public class HMMStateArc {    private HMMState hmmState;    private float probability;    /**     * Constructs an HMMStateArc     *     * @param hmmState destination state for this arc     * @param probability the probability for this transition     */    public HMMStateArc(HMMState hmmState, float probability) {	this.hmmState = hmmState;	this.probability = probability;    }    /**     * Gets the HMM associated with this state     *     * @return the HMM     */    public HMMState getHMMState() {	return hmmState;    }    /**     * Gets log transition probability      *     * @return the probability in the LogMath log domain     */    public float getLogProbability() {	return probability;    }    /**     * returns a string represntation of the arc     */    public String toString() {	return "HSA " + hmmState + " prob " + probability;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?