Compare commits
2 commits
316c910c3a
...
67bc7efd5c
| 작성자 | SHA1 | 날짜 | |
|---|---|---|---|
|
|
67bc7efd5c | ||
|
|
6cd6df4b89 |
1개의 변경된 파일과 5개의 추가작업 그리고 3개의 파일을 삭제
|
|
@ -242,6 +242,7 @@ def stats_NFDBP(R, N, t_i):
|
|||
|
||||
for n in range(N):
|
||||
print("Mean H_{} : {} (variance {})".format(n, mean(H[n]), variance(H[n])))
|
||||
# TODO variance for T_k doesn't see right
|
||||
print("Mean T_{} : {} (variance {})".format(k, mean(Sum_T), variance(Sum_T)))
|
||||
# Loi math
|
||||
for u in range(N):
|
||||
|
|
@ -285,8 +286,9 @@ def stats_NFDBP(R, N, t_i):
|
|||
P
|
||||
)
|
||||
)
|
||||
ax.legend(loc="upper left", title="Legend")
|
||||
ax.legend(loc="upper right", title="Legend")
|
||||
|
||||
# TODO fix the graph below
|
||||
# Mathematical P(Ti=k) plot. It shows the Ti(t_i) law with the probability of each number of items.
|
||||
print(len(Tk[t_i]))
|
||||
bx = fig.add_subplot(222)
|
||||
|
|
@ -310,7 +312,7 @@ def stats_NFDBP(R, N, t_i):
|
|||
bx.set_title(
|
||||
"T{} histogram for {} items (Number of items in each bin)".format(t_i, P)
|
||||
)
|
||||
bx.legend(loc="upper left", title="Legend")
|
||||
bx.legend(loc="upper right", title="Legend")
|
||||
|
||||
# Loi mathematique
|
||||
print(T_maths)
|
||||
|
|
@ -333,7 +335,7 @@ def stats_NFDBP(R, N, t_i):
|
|||
cx.set_ylabel("P(T{}=i)".format(t_i))
|
||||
cx.set_xlabel("Bins i=(1-{})".format(N))
|
||||
cx.set_title("Theoretical T{} values in %".format(t_i))
|
||||
cx.legend(loc="upper left", title="Legend")
|
||||
cx.legend(loc="upper right", title="Legend")
|
||||
plt.show()
|
||||
|
||||
|
||||
|
|
|
|||
불러오는 중…
Reference in a new issue