Commit b74dc5f8 authored by Jakub Klemsa's avatar Jakub Klemsa
Browse files

Minor: changes in analytical script.

parent a3818e81
......@@ -25,6 +25,9 @@ end
def vmax(pow_2Delta, v0, nn, n)
1.0 * pow_2Delta * v0 + vround(nn, n)
end
def vmax_bnd(pi)
1.0 / (3**2 * 2**(2*(pi+1)))
end
def eta(pi, pow_2Delta, v0, nn, n)
3.0 * Math::sqrt(pow_2Delta * v0 + vround(nn, n)) * (1 << (pi + 1))
end
......@@ -60,6 +63,7 @@ results.each do |ri|
sb = 1.0 * par[:abcd][3] * par[:xy][1] / (3**2 * 2**(2*par[:pi] + 2) * par[:_2Delta])
v0_calc = h + d + c + s
v0_calc_C = ri[:bench][:noise][:calc_V_0_concrete]
v0_meas = ri[:bench][:noise][:meas_V_0]
vmax_calc = vmax par[:_2Delta], v0_calc, par[:N], par[:n]
......@@ -74,7 +78,8 @@ results.each do |ri|
puts "(♦) %12.10f of %12.10f (%7.2f%%)" % [d, db, d/db*100]
puts "(♣) %12.10f of %12.10f (%7.2f%%)" % [c, cb, c/cb*100]
puts "(♠) %12.10f of %12.10f (%7.2f%%)" % [s, sb, s/sb*100]
puts "(V_0 calc) %12.10f" % [v0_calc]
puts "(V_0 M calc) %12.10f" % [v0_calc]
puts "(V_0 C calc) %12.10f" % [v0_calc_C]
puts "(V_0 meas) %12.10f" % [v0_meas]
puts "(V_max calc) %12.10f of %12.10f (%7.2f%%)" % [vmax_calc, vmax_bnd, vmax_calc/vmax_bnd*100]
puts "(V_max meas) %12.10f of %12.10f (%7.2f%%)" % [vmax_meas, vmax_bnd, vmax_meas/vmax_bnd*100]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment