Print more for binomial
This commit is contained in:
parent
a774076061
commit
d00d580a20
@ -19,6 +19,8 @@ normalized_coeffs = coeffs / 2 ** N
|
|||||||
print("normalized coefficients:", normalized_coeffs)
|
print("normalized coefficients:", normalized_coeffs)
|
||||||
|
|
||||||
expect_x = np.sum(normalized_coeffs) / len(normalized_coeffs)
|
expect_x = np.sum(normalized_coeffs) / len(normalized_coeffs)
|
||||||
|
print("<x>:", expect_x)
|
||||||
expect_x_sqrd = np.sum(normalized_coeffs ** 2) / len(normalized_coeffs)
|
expect_x_sqrd = np.sum(normalized_coeffs ** 2) / len(normalized_coeffs)
|
||||||
std = np.sqrt(expect_x_sqrd - expect_x ** 2)
|
print("<x^2>:", expect_x_sqrd)
|
||||||
print("std", std)
|
sigma_x = np.sqrt(expect_x_sqrd - expect_x ** 2)
|
||||||
|
print("sigma x", sigma_x)
|
||||||
|
Loading…
Reference in New Issue
Block a user