com.hankcs.hanlp.algoritm
类 ArrayDistance

java.lang.Object
  继承者 com.hankcs.hanlp.algoritm.ArrayDistance

public class ArrayDistance
extends Object

求两个集合中最相近的两个数

作者:
hankcs

构造方法摘要
ArrayDistance()
           
 
方法摘要
static Long computeAverageDistance(Long[] arrayA, Long[] arrayB)
           
static Long computeMinimumDistance(Long[] arrayA, Long[] arrayB)
           
static Long computeMinimumDistance(TreeSet<Long> setA, TreeSet<Long> setB)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ArrayDistance

public ArrayDistance()
方法详细信息

computeMinimumDistance

public static Long computeMinimumDistance(TreeSet<Long> setA,
                                          TreeSet<Long> setB)

computeMinimumDistance

public static Long computeMinimumDistance(Long[] arrayA,
                                          Long[] arrayB)

computeAverageDistance

public static Long computeAverageDistance(Long[] arrayA,
                                          Long[] arrayB)


Copyright © 2014–2015 码农场. All rights reserved.