bandwidth

main
higepi 1 year ago
parent 99d93a353f
commit ed2dabd74e

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 44 KiB

@ -13,6 +13,26 @@ plt.scatter(X, Y_CPY, color="b", marker="x", label="RISCV COPY")
plt.scatter(X, YA_MEM, color="r", label="ARM MEM")
plt.scatter(X, YA_CPY, color="r",marker="x", label="ARM COPY")
x = np.array(X).reshape(-1, 1)
y = np.array(Y_MEM).reshape(-1, 1)
y2 = np.array(YA_MEM).reshape(-1, 1)
reg = LinearRegression().fit(x, y)
reg2 = LinearRegression().fit(x, y2)
print("score obtenu : " + str(reg.score(x, y)))
print("score obtenu : " + str(reg2.score(x, y2)))
print("attente à zéro : {}".format(reg.intercept_))
print("attente à zéro : {}".format(reg2.intercept_))
x_lin = [0, max(X)]
y_lin = [reg.predict(np.array([0]).reshape(-1, 1)), reg.predict(np.array([x_lin[1]]).reshape(-1, 1))]
y_lin2 = [reg2.predict(np.array([0]).reshape(-1, 1)), reg2.predict(np.array([x_lin[1]]).reshape(-1, 1))]
y_lin = [y_lin[0][0][0], y_lin[1][0][0]]
y_lin2 = [y_lin2[0][0][0], y_lin2[1][0][0]]
plt.plot(x_lin, y_lin, color = "b", label="RegLin score : {:.4f}".format(reg.score(x, y)))
plt.plot(x_lin, y_lin2, color = "r", label="RegLin score : {:.4f}".format(reg2.score(x, y2)))
plt.xlim([0, 1024])
plt.ylim([50, 32000])
plt.legend()

@ -1,3 +1,3 @@
Quartus_Version = Version 22.1std.0 Build 915 10/25/2022 SC Standard Edition
Version_Index = 553882368
Creation_Time = Thu Mar 9 10:59:19 2023
Creation_Time = Thu Mar 9 16:31:59 2023

Binary file not shown.
Loading…
Cancel
Save