Skip to content

Commit 7cf37d4

Browse files
committed
Fix: value of cost function from ODR
1 parent 8cc8219 commit 7cf37d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

uncertaintyx/fit/eiv/numpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def jac_x(x: np.ndarray, p: np.ndarray) -> np.ndarray:
123123
punc = u(res.sd_beta, k_u)
124124
pcov = u(res.cov_beta * res.res_var, k_u + k_u)
125125
rvar = np.var(f.eval(popt, x) - y, axis=0, ddof=popt.size)
126-
cost = res.sum_square
126+
cost = 0.5 * res.sum_square # compares to EVM cost
127127

128128
return Result(
129129
f,

0 commit comments

Comments
 (0)