mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Merge pull request #1321 from WarrenWeckesser/invchi2-mean-err-typo
Fix the name in the inverse_chi_squared mean error message.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user