Class LanguageProfileImpl.Stats
- java.lang.Object
-
- com.optimaize.langdetect.profiles.LanguageProfileImpl.Stats
-
- Enclosing class:
- LanguageProfileImpl
private static class LanguageProfileImpl.Stats extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull java.util.Map<java.lang.Integer,java.lang.Long>
maxGramCounts
Key = gram length (1-3 or so).private @NotNull java.util.Map<java.lang.Integer,java.lang.Long>
minGramCounts
Key = gram length (1-3 or so).private @NotNull java.util.Map<java.lang.Integer,java.lang.Long>
numOccurrences
Key = gram length (1-3 or so).
-
Constructor Summary
Constructors Constructor Description Stats(@NotNull java.util.Map<java.lang.Integer,java.lang.Long> numOccurrences, @NotNull java.util.Map<java.lang.Integer,java.lang.Long> minGramCounts, @NotNull java.util.Map<java.lang.Integer,java.lang.Long> maxGramCounts)
-
-
-
Field Detail
-
numOccurrences
@NotNull private final @NotNull java.util.Map<java.lang.Integer,java.lang.Long> numOccurrences
Key = gram length (1-3 or so). Value = number of all occurrences of these grams combined.
-
minGramCounts
@NotNull private final @NotNull java.util.Map<java.lang.Integer,java.lang.Long> minGramCounts
Key = gram length (1-3 or so). Value = number of occurrences of the n-gram that occurs the least often. this can be 1, or larger if a cutoff was applied to remove infrequent grams.
-
maxGramCounts
@NotNull private final @NotNull java.util.Map<java.lang.Integer,java.lang.Long> maxGramCounts
Key = gram length (1-3 or so). Value = number of occurrences of the n-gram that occurs the most often.
-
-