aboutsummaryrefslogtreecommitdiff
path: root/util/plot_dh.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'util/plot_dh.ipynb')
-rw-r--r--util/plot_dh.ipynb16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/plot_dh.ipynb b/util/plot_dh.ipynb
index e42b25c..950be6a 100644
--- a/util/plot_dh.ipynb
+++ b/util/plot_dh.ipynb
@@ -9,7 +9,7 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2019-03-19T13:35:38.954375Z",
@@ -510,7 +510,7 @@
" values = data_trimmed[np.logical_and(data_trimmed[\"time\"] <= upper_bnd,\n",
" data_trimmed[\"time\"] >= lower_bnd)]\n",
" axe_bl_time.clear()\n",
- " axe_bl_time.set_title(\"Private key bit length, given key agreement time $\\in ({}, {})$ {}\".format(int(lower_bnd), int(upper_bnd), sign_disp_unit))\n",
+ " axe_bl_time.set_title(\"Private key bit length, given key agreement time $\\in ({}, {})$ {}\".format(int(lower_bnd), int(upper_bnd), time_disp_unit))\n",
" bl_data = np.array(list(map(lambda x: x.bit_length(), values[\"priv\"])), dtype=np.dtype(\"u2\"))\n",
" plot_hist(axe_bl_time, bl_data, \"private key bit length\", bins=11, range=(bit_size-10, bit_size+1), align=\"left\")\n",
" axe_bl_time.set_xlim((bit_size-10, bit_size))\n",
@@ -519,11 +519,11 @@
"center_w = widgets.IntSlider(min=min(data_trimmed[\"time\"]),\n",
" max=max(data_trimmed[\"time\"]),\n",
" step=1,\n",
- " value=description_sign_trim.mean,\n",
+ " value=description_trim.mean,\n",
" continuous_update=False,\n",
- " description=\"center {}\".format(sign_disp_unit))\n",
+ " description=\"center {}\".format(time_disp_unit))\n",
"width_w = widgets.IntSlider(min=1, max=100, continuous_update=False,\n",
- " description=\"width {}\".format(sign_disp_unit))\n",
+ " description=\"width {}\".format(time_disp_unit))\n",
"w = interactive(f, center=center_w,\n",
" width=width_w)\n",
"display(w)"
@@ -568,7 +568,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "All of the following tests should pass (e.g. be true), given a large enough sample and run without the `--fixed` or `-priv/-npriv` flags:"
+ "All of the following tests should pass (e.g. be true), given a large enough sample."
]
},
{
@@ -610,8 +610,8 @@
],
"metadata": {
"@webio": {
- "lastCommId": "18de549d83f84e128074fc96e268d86f",
- "lastKernelId": "875ada23-b504-4c96-8f24-68b5d72faab5"
+ "lastCommId": "68bed3134fc443a3829779707f7e77b0",
+ "lastKernelId": "168cb4cf-3a36-4e98-a687-9a9f57b50354"
},
"hide_input": false,
"kernelspec": {