def inferLen(self, datas, lens):
     datasLenBig = Converter.bytesToBigInt(datas)
     datasLittle = Converter.byteToLittle(datas)
     personBig = base_analyzer.pearson(datasLenBig, lens)
     personLittle = base_analyzer.pearson(datasLittle, lens)
     if personBig > self.lengthThreshold or personLittle > self.lengthThreshold:
         return 1
     else:
         return 0
 def inferSeriesId(self, datas):
     ids = []
     for i, data in enumerate(datas):
         ids.append(i)
     datasBigInt = Converter.bytesToBigInt(datas)
     datasLittle = Converter.byteToLittle(datas)
     tRate = max(base_analyzer.pearson(ids, datasBigInt),
                 base_analyzer.pearson(ids, datasLittle))
     if (tRate > self.idThreshold):
         return 1
     else:
         return 0