📄 potentialfactoryselect.java
字号:
package rmn;public class PotentialFactorySelect extends PotentialFactory { public PotentialFactorySelect(double[][] weights) { super(); m_weights = new Matrix2(weights); } public PotentialFactorySelect() { super(); m_weights = new Matrix2(2, 2); ((Matrix2) m_weights).m_matrix[0][0] = 1; ((Matrix2) m_weights).m_matrix[0][1] = 0; ((Matrix2) m_weights).m_matrix[1][0] = 0; ((Matrix2) m_weights).m_matrix[1][1] = 1; } public Potential newInstance() { m_nPots++; return new PotentialSelect(this); } public boolean hasVariableArity() { return true; } public void incTrueCounts(int[] pos) { // not needed for fix-value potentials ? // move this elsewhere } public void incInfCounts(int[] pos) { // not needed for fix-value potentials ? // move this elsewhere }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -