// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #ifndef JFJOCH_BRAGGINTEGRATIONSTATS_H #define JFJOCH_BRAGGINTEGRATIONSTATS_H #include #include #include #include "../../common/Reflection.h" class BraggIntegrationStats { float d_min, d_max; float one_over_dmax; float one_over_dmin; int32_t nshells; std::vector I; std::vector I_sigma; std::vector count; std::vector wilson_plot; std::vector wilson_plot_legend; std::vector plot_Isigma; public: BraggIntegrationStats(float d_max_A, float d_min_A, int32_t nshells); void AddReflection(const Reflection &r); std::optional BFactor(); std::vector GetWilsonPlot(); std::vector GetWilsonPlotLegend(); std::vector GetISigmaPlot(); }; #endif //JFJOCH_BRAGGINTEGRATIONSTATS_H