Lines Matching refs:histogram
12 double FN(BrotliPopulationCost)(const HistogramType* histogram) { in FN()
22 if (histogram->total_count_ == 0) { in FN()
26 if (histogram->data_[i] > 0) { in FN()
36 return (kTwoSymbolHistogramCost + (double)histogram->total_count_); in FN()
39 const uint32_t histo0 = histogram->data_[s[0]]; in FN()
40 const uint32_t histo1 = histogram->data_[s[1]]; in FN()
41 const uint32_t histo2 = histogram->data_[s[2]]; in FN()
52 histo[i] = histogram->data_[s[i]]; in FN()
75 const double log2total = FastLog2(histogram->total_count_); in FN()
77 if (histogram->data_[i] > 0) { in FN()
80 double log2p = log2total - FastLog2(histogram->data_[i]); in FN()
83 bits += histogram->data_[i] * log2p; in FN()
97 for (k = i + 1; k < data_size && histogram->data_[k] == 0; ++k) { in FN()