Skip to content

Commit b684b66

Browse files
Fix the name in the inverse_chi_squared mean error message.
1 parent 2697069 commit b684b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/math/distributions/inverse_chi_squared.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ BOOST_MATH_GPU_ENABLED inline RealType mean(const inverse_chi_squared_distributi
289289
if(df <= 2)
290290
return policies::raise_domain_error<RealType>(
291291
function,
292-
"inverse Chi-Squared distribution only has a mode for degrees of freedom > 2, but got degrees of freedom = %1%.",
292+
"inverse Chi-Squared distribution only has a mean for degrees of freedom > 2, but got degrees of freedom = %1%.",
293293
df, Policy());
294294
return (df * scale) / (df - 2);
295295
} // mean

0 commit comments

Comments
 (0)