IPFSのWhitepaper中のBitSwapプロトコルの送信確率の負債依存性を描いているFigure1が何故か正しく描画されていない。
なので自分で描いてみた、というただそれだけの物。
import numpy as np
import matplotlib.pyplot as plt
r = np.linspace(0, 4, 100);
p = 1 - 1 / (1 + np.exp(6-3 * r))
plt.title('Figure 1', fontsize=20)
plt.plot(r, p)
plt.xlabel('$r$', fontsize=15)
plt.ylabel('$P(send | r)$', fontsize=15)
Text(0,0.5,'$P(send | r)$')