示例#1
0
 public TwoStringInfo()
 {
     TwoGramCount    = 0;
     N1PlusStarww    = 0;
     NwwStarCount    = new NwStarCount();
     ThreeGramCounts = new Dictionary <int, uint>();
     MostLikelies    = new List <int>();
 }
示例#2
0
        public OneStringInfo()
        {
            TwoGrams     = new Dictionary <int, TwoStringInfo>();
            NwStarCount  = new NwStarCount();
            MostLikelies = new List <int>();

            OneGramCount    = 0;
            N1PlusStarwStar = 0;
            N1PlusStarw     = 0;
        }
示例#3
0
 protected static byte[] Serialize(NwStarCount data)
 {
     return(Serialization.Concat(BitConverter.GetBytes(data.N1WStar), BitConverter.GetBytes(data.N2WStar), BitConverter.GetBytes(data.N3PlusWStar)));
 }