File indexing completed on 2026-08-17 08:39:06
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_BLOOM_DETAIL_MULTIBLOCK_FPR_BASE_HPP
0010 #define BOOST_BLOOM_DETAIL_MULTIBLOCK_FPR_BASE_HPP
0011
0012 #include <cmath>
0013 #include <cstddef>
0014
0015 namespace boost{
0016 namespace bloom{
0017 namespace detail{
0018
0019 template<std::size_t K>
0020 struct multiblock_fpr_base
0021 {
0022 static double fpr(std::size_t i,std::size_t w)
0023 {
0024 return std::pow(1.0-std::pow(1.0-(double)K/w,(double)i),(double)K);
0025 }
0026 };
0027
0028 }
0029 }
0030 }
0031 #endif