DetectionCount#
- DetectionCount(target=0, excess_only=False)[来源]#
检测次数,可能是超出或偏离目标次数。
- 参数:
- targetint, default=0
目标检测次数。如果为 0,则计数是绝对检测次数。如果为正,则默认报告的计数是检测次数与目标次数之间的绝对差。如果
excess_only
参数设置为True
,则计数是超出目标次数的检测次数(如果更大),否则为零。- excess_onlybool, default=False
如果为 False,则计数是
target
和检测次数之间的绝对差。如果为 True,则计数是超出目标次数的检测次数(如果更大),否则为零。