com.groupdocs.search

Class SimilarityLevel



  • public class SimilarityLevel
    extends FuzzyAlgorithm

    Represents the similarity level.

    • Constructor Detail

      • SimilarityLevel

        public SimilarityLevel(double value)

        Initializes a new instance of the SimilarityLevel class.

        Parameters:
        value - The similarity level value.
    • Method Detail

      • getSimilarityLevel

        public double getSimilarityLevel(int termLength)

        Gets a similarity level for specified term length.

        Specified by:
        getSimilarityLevel in class FuzzyAlgorithm
        Parameters:
        termLength - The term length.
        Returns:
        A similarity level.
      • getMaxMistakeCount

        public int getMaxMistakeCount(int termLength)

        Gets a maximum allowed number of mistakes for specified term length.

        Specified by:
        getMaxMistakeCount in class FuzzyAlgorithm
        Parameters:
        termLength - The term length.
        Returns:
        A maximum allowed number of mistakes.