public class SimilarityLevel extends FuzzyAlgorithm
Represents the similarity level.
Constructor and Description |
---|
SimilarityLevel(double value)
Initializes a new instance of the
SimilarityLevel class. |
Modifier and Type | Method and Description |
---|---|
int |
getMaxMistakeCount(int termLength)
Gets a maximum allowed number of mistakes for specified term length.
|
double |
getSimilarityLevel(int termLength)
Gets a similarity level for specified term length.
|
public SimilarityLevel(double value)
Initializes a new instance of the SimilarityLevel
class.
value
- The similarity level value.public double getSimilarityLevel(int termLength)
Gets a similarity level for specified term length.
getSimilarityLevel
in class FuzzyAlgorithm
termLength
- The term length.public int getMaxMistakeCount(int termLength)
Gets a maximum allowed number of mistakes for specified term length.
getMaxMistakeCount
in class FuzzyAlgorithm
termLength
- The term length.Copyright © 2019. All rights reserved.