High-performance numerical integration and automated peak feature detection.
More...
#include <PeakIntegrationService.hpp>
|
| static PeakIntegralResult | integrateRange (std::span< const real_t > x_bins, std::span< const real_t > y_vals, real_t r_min, real_t r_max, std::optional< real_t > number_density=std::nullopt, bool is_radial=false) |
| | Numerically integrates a distribution across a specified domain range.
|
| static std::optional< PeakIntegralResult > | autoDetectPeakNear (std::span< const real_t > x_bins, std::span< const real_t > y_vals, real_t target_x, std::optional< real_t > number_density=std::nullopt, bool is_radial=false) |
| | Detects the nearest peak maximum to a clicked coordinate and integrates its shell.
|
| static real_t | calculateFWHM (std::span< const real_t > x_bins, std::span< const real_t > y_vals, std::size_t peak_idx, std::size_t min_idx, std::size_t max_idx) noexcept |
| | Calculates Full Width at Half Maximum (FWHM) around a identified peak index.
|
High-performance numerical integration and automated peak feature detection.
◆ autoDetectPeakNear()
| std::optional< PeakIntegralResult > correlation::analysis::PeakIntegrationService::autoDetectPeakNear |
( |
std::span< const real_t > | x_bins, |
|
|
std::span< const real_t > | y_vals, |
|
|
real_t | target_x, |
|
|
std::optional< real_t > | number_density = std::nullopt, |
|
|
bool | is_radial = false ) |
|
staticnodiscard |
Detects the nearest peak maximum to a clicked coordinate and integrates its shell.
- Parameters
-
| [in] | x_bins | Domain bin centers. |
| [in] | y_vals | Function values. |
| [in] | target_x | Selected coordinate to search around. |
| [in] | number_density | Optional macroscopic atomic number density ρ₀ (atoms/ų). |
| [in] | is_radial | True if distribution is radial g(r) or H(r). |
- Returns
- Detected peak result, or std::nullopt if no valid peak exists.
◆ calculateFWHM()
| real_t correlation::analysis::PeakIntegrationService::calculateFWHM |
( |
std::span< const real_t > | x_bins, |
|
|
std::span< const real_t > | y_vals, |
|
|
std::size_t | peak_idx, |
|
|
std::size_t | min_idx, |
|
|
std::size_t | max_idx ) |
|
staticnodiscardnoexcept |
Calculates Full Width at Half Maximum (FWHM) around a identified peak index.
- Parameters
-
| [in] | x_bins | Domain coordinates. |
| [in] | y_vals | Amplitudes. |
| [in] | peak_idx | Index of peak maximum. |
| [in] | min_idx | Lower search boundary index. |
| [in] | max_idx | Upper search boundary index. |
- Returns
- Computed FWHM in coordinate units.
◆ integrateRange()
| PeakIntegralResult correlation::analysis::PeakIntegrationService::integrateRange |
( |
std::span< const real_t > | x_bins, |
|
|
std::span< const real_t > | y_vals, |
|
|
real_t | r_min, |
|
|
real_t | r_max, |
|
|
std::optional< real_t > | number_density = std::nullopt, |
|
|
bool | is_radial = false ) |
|
staticnodiscard |
Numerically integrates a distribution across a specified domain range.
- Parameters
-
| [in] | x_bins | Domain bin centers. |
| [in] | y_vals | Function values. |
| [in] | r_min | Lower bound of integration range. |
| [in] | r_max | Upper bound of integration range. |
| [in] | number_density | Optional macroscopic atomic number density ρ₀ (atoms/ų). |
| [in] | is_radial | True if distribution is radial g(r) or H(r). |
- Returns
- Computed integral result metrics.
The documentation for this class was generated from the following files: