数字芯片验证中的功能覆盖与代码覆盖技术解析
2026/5/10 4:04:48
基数度量是一种近似算法,基于 HyperLogLog++(HLL)算法。HLL 通过对输入进行哈希处理,并利用哈希值的位来对基数进行概率估计。
要配置精度,需指定precision_threshold参数。该阈值定义了基数预计非常接近准确值的点。例如:
GET /cars/transactions/_search?search_type=count { "aggs" : { "distinct_colors" : { "cardinality" : { "field" : "color", "precision_threshold" : 100 } } } }precision_threshold接受 0 -