Skip to content

Commit

Permalink
More precise log
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmure committed Apr 4, 2024
1 parent 30d024a commit 2cd2163
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/Uncertainty/Distribution/ClaytonCopula.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ Point ClaytonCopula::computeQuantile(const Scalar prob,
// Independent case
if (theta_ == 0.0) return Point(2, std::sqrt(q));
// General case
LOGWARN(OSS() << "In ClaytonCopula::computeQuantile: q = " << q << " and return value - 1 = " << std::exp((M_LN2 - log1p(std::pow(q, -theta_))) / theta_) - 1.0);
LOGWARN(OSS() << "In ClaytonCopula::computeQuantile: q - 1 = " << q - 1.0 << " and theta_ = " << theta_);
LOGWARN(OSS() << "M_LN2 - log1p(std::pow(q, -theta_)) = " << M_LN2 - log1p(std::pow(q, -theta_)));
LOGWARN(OSS() << "Return value - 1 = " << std::exp((M_LN2 - log1p(std::pow(q, -theta_))) / theta_) - 1.0);
return Point(2, std::exp((M_LN2 - log1p(std::pow(q, -theta_))) / theta_));
}

Expand Down

0 comments on commit 2cd2163

Please sign in to comment.