Class 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)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Constructor Detail

      • Stats

        public Stats​(@NotNull
                     @NotNull java.util.Map<java.lang.Integer,​java.lang.Long> numOccurrences,
                     @NotNull
                     @NotNull java.util.Map<java.lang.Integer,​java.lang.Long> minGramCounts,
                     @NotNull
                     @NotNull java.util.Map<java.lang.Integer,​java.lang.Long> maxGramCounts)