Commit 4e3eb1c1 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

renaming

parent a9e739f9
Pipeline #149544 failed with stages
in 9 minutes and 54 seconds
......@@ -19,7 +19,7 @@ double MultilevelErrors::EstimateNumeric(const MultilevelData &data) {
double MultilevelErrors::EstimateNumeric(const MeanMap &means) {
auto _levels = means.GetLevelVector();
auto _avgs = means.GetYVector();
auto _means = means.GetYVector();
double alpha = exponents.alpha;
if (alpha == 0.0) alpha = exponents.ComputeAlpha(means);
......@@ -27,7 +27,7 @@ double MultilevelErrors::EstimateNumeric(const MeanMap &means) {
double err = 0.0;
int integer = means.size() - 2;
for (int i = 1; i < _levels.size(); i++) {
err = max(_avgs[i] / (pow(2.0, alpha) - 1) / (pow(2.0, integer)), err);
err = max(_means[i] / (pow(2.0, alpha) - 1) / (pow(2.0, integer)), err);
integer--;
}
......@@ -40,11 +40,11 @@ double MultilevelErrors::EstimateStochastic(const MultilevelData &data) {
double MultilevelErrors::EstimateStochastic(const SampleCounterMap &ctrs, const SVarMap &sVars) {
auto _ctrs = ctrs.GetMVector();
auto _vars = sVars.GetYVector();
auto _sVars = sVars.GetYVector();
double err = 0.0;
for (int i = 0; i < _ctrs.size(); i++)
err += _vars[i] / double(_ctrs[i]);
err += _sVars[i] / double(_ctrs[i]);
return sqrt(err);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment