MCPcopy Index your code
hub / github.com/nodejs/node / ComputeProbability

Method ComputeProbability

deps/v8/tools/perf-compare.py:49–72  ·  view source on GitHub ↗
(z)

Source from the content-addressed store, hash-verified

47 # Values from http://www.fourmilab.ch/rpkp/experiments/analysis/zCalc.html
48 @staticmethod
49 def ComputeProbability(z):
50 if z > 2.575829: # p 0.005: two sided < 0.01
51 return 0
52 if z > 2.326348: # p 0.010
53 return 0.01
54 if z > 2.170091: # p 0.015
55 return 0.02
56 if z > 2.053749: # p 0.020
57 return 0.03
58 if z > 1.959964: # p 0.025: two sided < 0.05
59 return 0.04
60 if z > 1.880793: # p 0.030
61 return 0.05
62 if z > 1.811910: # p 0.035
63 return 0.06
64 if z > 1.750686: # p 0.040
65 return 0.07
66 if z > 1.695397: # p 0.045
67 return 0.08
68 if z > 1.644853: # p 0.050: two sided < 0.10
69 return 0.09
70 if z > 1.281551: # p 0.100: two sided < 0.20
71 return 0.10
72 return 0.20 # two sided p >= 0.20
73
74
75class ResultsDiff:

Callers 1

CompareMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected