public bool Equals(NGramma <T> other) { if (other is null) { return(false); } if (_count != other._count) { return(false); } return(Values.SequenceEqual(other.Values)); }
public Message(Int32[] messageWords, Boolean isSpam, int n) { NGramms = NGramma <int> .GetNGrammaFromArray(messageWords, n); IsSpam = isSpam; }