Skip to content
Snippets Groups Projects
Verified Commit dd7f58c1 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

:bug: set J_test field to empty in case of just or underidentified case

Prevents crash

(cherry picked from commit b9d069da)
parent b0c27f4d
Branches
Tags
No related merge requests found
Pipeline #10416 passed
......@@ -70,4 +70,6 @@ if options_mom_.mom.mom_nbr > length(xparam)
J_test.p_val = 1-chi2cdf(J_test.j_stat, J_test.degrees_freedom);
fprintf('\nValue of J-test statistic: %f\n',J_test.j_stat);
fprintf('p-value of J-test statistic: %f\n',J_test.p_val);
else
J_test=[];
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment