Searched refs:bucket_width (Results 1 – 7 of 7) sorted by relevance
92 const float bucket_width = (max - min) / num_steps; in RoundWeights() local94 const int32 bucket = std::floor((old_values[i] - min) / bucket_width); in RoundWeights()95 rounded_values[i] = min + (bucket_width * (bucket + 0.5f)); in RoundWeights()
338 const double bucket_width = 1.0 / static_cast<double>(buckets); in SingleChiSquaredTest() local342 const double p = bucket_width * static_cast<double>(i); in SingleChiSquaredTest()360 bucket_width * static_cast<double>(samples)); in SingleChiSquaredTest()365 expected.push_back(static_cast<double>(buckets - i + 1) * bucket_width * in SingleChiSquaredTest()
355 const double bucket_width = 1.0 / static_cast<double>(buckets); in SingleChiSquaredTest() local359 const double p = bucket_width * static_cast<double>(i); in SingleChiSquaredTest()377 bucket_width * static_cast<double>(samples)); in SingleChiSquaredTest()382 expected.push_back(static_cast<double>(buckets - i + 1) * bucket_width * in SingleChiSquaredTest()
350 const double bucket_width = 1.0 / static_cast<double>(buckets); in SingleChiSquaredTest() local354 const double p = bucket_width * static_cast<double>(i); in SingleChiSquaredTest()372 bucket_width * static_cast<double>(samples)); in SingleChiSquaredTest()377 expected.push_back(static_cast<double>(buckets - i + 1) * bucket_width * in SingleChiSquaredTest()