Anonymous user
Talk:Verify distribution uniformity/Chi-squared test: Difference between revisions
Talk:Verify distribution uniformity/Chi-squared test (view source)
Revision as of 03:49, 11 December 2018
, 5 years ago→possible error
Line 46:
(n-1).step(0, -1) do |j|
t = h * j
sum += f0[t] + hh * df0[t]
end
The last iteration produces a value of j of 0, which means t is zero but df0[t] is not a number
as it requires the calculation of 0**a2. I just changed the
and it seems to give the correct result.
|