Skip to content
Snippets Groups Projects
Commit 50cb449b authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm local var

parent 3b45c1d9
No related branches found
No related tags found
1 merge request!1300Merge IScanResolution and child classes -> ScanResolution
......@@ -166,9 +166,7 @@ std::string RangedDistributionLogNormal::name() const
IDistribution1D* RangedDistributionLogNormal::distribution_impl(double mean, double stddev) const
{
const double mean_2 = mean * mean;
const double scale = std::sqrt(std::log(stddev * stddev / mean_2 + 1.0));
const double scale = std::sqrt(std::log(pow(stddev / mean, 2) + 1.0));
const double median = mean * std::exp(-scale * scale / 2.0);
return new DistributionLogNormal(median, scale);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment