clique.java
来自「常用机器学习算法,java编写源代码,内含常用分类算法,包括说明文档」· Java 代码 · 共 61 行
JAVA
61 行
package edu.umass.cs.mallet.grmm;import salvo.jesus.graph.Vertex;import java.util.Set;import java.util.Iterator;/** * A clique maintains a set of variables in a specified order. * (Although mathematically, a clique must be fully-connected, * nothing in this datastructure depends on this.) * * @author Charles Sutton * @version $Id: Clique.java,v 1.2 2004/08/13 19:17:37 casutton Exp $ */public interface Clique extends Set, Vertex, Cloneable { /** * Returns the variable in this clique at index idx. * @param idx * @return the variable */ Variable get (int idx); /** * Returns the variables in this clique as a set. This set * should not be modified * @return Set */ Set vertices(); /** * Returns the variables in this clique as an array, that should * not be modified. * @return An array of Variables. */ Variable[] toVariableArray (); /** * Returns the number of assignments of this clique. */ int weight (); /** * Returns an iterator over the assignments to this clique. * Each element in the Iterator is an {@link Assignment} object. * @return An iterator over assignments */ AssignmentIterator assignmentIterator (); /** * Returns the intersection of two cliques. */ Set intersection (Clique c);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?