FuzzyAlgorithm

Inheritance: java.lang.Object

public abstract class FuzzyAlgorithm

Represents the base class for fuzzy search algorithms.

Learn more

Methods

Method Description
getSimilarityLevel(int termLength) Gets the similarity level for the specified term length.
getMaxMistakeCount(int termLength) Gets the maximum allowed number of mistakes for the specified term length.
getCore()

getSimilarityLevel(int termLength)

public abstract double getSimilarityLevel(int termLength)

Gets the similarity level for the specified term length.

Parameters:

Parameter Type Description
termLength int The term length.

Returns: double - The similarity level.

getMaxMistakeCount(int termLength)

public abstract int getMaxMistakeCount(int termLength)

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

Parameters:

Parameter Type Description
termLength int The term length.

Returns: int - The maximum allowed number of mistakes.

getCore()

public Object getCore()

Returns: java.lang.Object