Object

com.github.vickumar1981.stringdistance

ArrayDistance

Related Doc: package stringdistance

Permalink

object ArrayDistance

Main class to work with generic arrays, Array[T], analagous to StringDistance

import com.github.vickumar1981.stringdistance.ArrayDistance._

// Example Levenshtein Distance and Score
val levenshteinDist = Levenshtein.distance(Array("m", "a", "r", "t", "h", "a"), Array("m", "a", "r", "h", "t", "a")) // 2
val levenshtein = Levenshtein.score(Array("m", "a", "r", "t", "h", "a"), Array("m", "a", "r", "h", "t", "a")) // 0.667
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ArrayDistance
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait DistanceMetric extends AnyRef

    Permalink
  2. sealed trait ScoreFromDistanceMetric extends AnyRef

    Permalink
  3. sealed trait ScoreMetric extends AnyRef

    Permalink
  4. sealed trait WeightedDistanceMetric[T2] extends AnyRef

    Permalink
  5. sealed trait WeightedScoreMetric[T2] extends AnyRef

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Cosine extends ScoreMetric with CosSimilarityImpl

    Permalink
  5. object Damerau extends ScoreFromDistanceMetric with LevenshteinDistanceImpl

    Permalink
  6. object DiceCoefficient extends ScoreMetric with DiceCoefficientImpl

    Permalink
  7. object Hamming extends ScoreFromDistanceMetric with HammingImpl

    Permalink
  8. object Jaccard extends WeightedScoreMetric[Int] with JaccardImpl

    Permalink
  9. object Jaro extends ScoreMetric with JaroImpl

    Permalink
  10. object JaroWinkler extends WeightedScoreMetric[Double] with JaroImpl

    Permalink
  11. object Levenshtein extends ScoreFromDistanceMetric with LevenshteinDistanceImpl

    Permalink
  12. object LongestCommonSeq extends DistanceMetric with LongestCommonSeqImpl

    Permalink
  13. object NGram extends WeightedScoreMetric[Int] with WeightedDistanceMetric[Int] with NGramImpl

    Permalink
  14. object NeedlemanWunsch extends WeightedScoreMetric[ConstantGap] with NeedlemanWunschImpl

    Permalink
  15. object Overlap extends WeightedScoreMetric[Int] with OverlapImpl

    Permalink
  16. object SmithWaterman extends WeightedScoreMetric[(Gap, Int)] with SmithWatermanImpl

    Permalink
  17. object SmithWatermanGotoh extends WeightedScoreMetric[ConstantGap] with SmithWatermanImpl

    Permalink
  18. object Tversky extends WeightedScoreMetric[Double] with JaccardImpl

    Permalink
  19. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  20. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def wrapDist[T](arr1: Array[T], arr2: Array[T], dist: () ⇒ Int): Int

    Permalink
    Attributes
    protected
  36. def wrapScore[T](arr1: Array[T], arr2: Array[T], score: () ⇒ Double): Double

    Permalink
    Attributes
    protected

Inherited from AnyRef

Inherited from Any

Ungrouped