(threshold, b, r)
| 10 | |
| 11 | # 利用积分计算fp |
| 12 | def _false_positive_probability(threshold, b, r): |
| 13 | _probability = lambda s : 1 - (1 - s**float(r))**float(b) |
| 14 | a, err = integrate(_probability, 0.0, threshold) |
| 15 | return a |
| 16 | |
| 17 | # 利用积分计算fn |
| 18 | def _false_negative_probability(threshold, b, r): |