MCPcopy Create free account
hub / github.com/eth-easl/dirigent / cdf

Function cdf

artifact_evaluation/plot_azure_500.py:36–47  ·  view source on GitHub ↗
(df, column)

Source from the content-addressed store, hash-verified

34
35
36def cdf(df, column):
37 df['density'] = 1 / df.shape[0]
38 df = df.groupby(column).sum(numeric_only=True)
39
40 res = df['density'].cumsum()
41
42 # make sure CDF starts from zero
43 index = res.index[0]
44 if index > 0:
45 res[index] = 0.0
46
47 return res
48
49
50def getCurve(path, idx=0):

Callers 3

getCurveFunction · 0.85
get_per_invocationFunction · 0.85
get_per_functionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected