code: def estimate_frequency_for_one(self, sample_rate: float, nbits=42) -> float:
          
          return self.__estimate_frequency_for_bit(True, sample_rate, nbits)
docs: Calculates the frequency of at most nbits logical ones and returns the mean of these frequencies
  
          :param nbits:
          :return: