Skip to content

Commit

Permalink
Steven noticed a bug. I forgot to divide by the number of baslined wh…
Browse files Browse the repository at this point in the history
…en averaging them.
  • Loading branch information
Andrew Sutton committed Dec 6, 2024
1 parent e7a7015 commit d919fa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions UserTools/PhaseIIADCCalibrator/PhaseIIADCCalibrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ PhaseIIADCCalibrator::make_calibrated_waveforms_ze3ra_multi(
bl_estimates_mean += baselines[idx];
bl_estimates_sigma += pow(sigma_baselines[idx],2);
}
bl_estimates_mean = bl_estimates_mean / baselines.size();
bl_estimates_sigma = sqrt(bl_estimates_sigma / double(baselines.size()));

// ComputeMeanAndVariance(baselines, bl_estimates_mean, bl_estimates_var, std::numeric_limits<size_t>::max(), 0, 7);
Expand Down

0 comments on commit d919fa7

Please sign in to comment.