2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Fix the name in the inverse_chi_squared mean error message.

This commit is contained in:
Warren Weckesser
2025-09-23 09:31:17 -04:00
parent 2697069329
commit b684b66e8a

View File

@@ -289,7 +289,7 @@ BOOST_MATH_GPU_ENABLED inline RealType mean(const inverse_chi_squared_distributi
if(df <= 2)
return policies::raise_domain_error<RealType>(
function,
"inverse Chi-Squared distribution only has a mode for degrees of freedom > 2, but got degrees of freedom = %1%.",
"inverse Chi-Squared distribution only has a mean for degrees of freedom > 2, but got degrees of freedom = %1%.",
df, Policy());
return (df * scale) / (df - 2);
} // mean