docdistance.java

来自「dragontoolkit用于机器学习」· Java 代码 · 共 33 行

JAVA
33
字号
package dragon.ir.clustering.docdistance;import dragon.ir.clustering.featurefilter.FeatureFilter;import dragon.ir.index.IRDoc;/** * <p>Interface of pair-wised document distance metric</p> * <p></p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: IST, Drexel University</p> * @author Davis Zhou * @version 1.0 */public interface DocDistance {    /**     * @param first the first document     * @param second the second document     * @return the distance of the given document pair     */    public double getDistance(IRDoc first, IRDoc second);    /**     * A feature selector is set. After that, the excluded features do not count in cluster model any more.     * @param selector the feature selector     */    public void setFeatureFilter(FeatureFilter selector);    /**     * @return the feature selector used for the cluster model     */    public FeatureFilter getFeatureFilter();}

⌨️ 快捷键说明

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