Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::analysis::FirstMinimumDetector Class Reference

Evaluates radial distribution functions to locate coordination shell boundaries. More...

#include <FirstMinimumDetector.hpp>

Static Public Member Functions

static std::expected< CutoffResult, DetectionError > detectCutoffs (std::span< const real_t > r_bins, std::span< const real_t > g_r, const DetectionOptions &opts={})
 Detects first coordination shell cutoffs from raw or smoothed spans.
static std::expected< CutoffResult, DetectionError > detectCutoffs (const Histogram &hist, std::string_view partial_key, const DetectionOptions &opts={})
 Convenience overload extracting partial curve from Histogram container.
static std::string_view formatError (DetectionError error) noexcept
 Converts a DetectionError to a human-readable diagnostic message.

Detailed Description

Evaluates radial distribution functions to locate coordination shell boundaries.

Member Function Documentation

◆ detectCutoffs() [1/2]

std::expected< CutoffResult, DetectionError > correlation::analysis::FirstMinimumDetector::detectCutoffs ( const Histogram & hist,
std::string_view partial_key,
const DetectionOptions & opts = {} )
staticnodiscard

Convenience overload extracting partial curve from Histogram container.

Parameters
[in]histDistribution function histogram container.
[in]partial_keyPartial key identifier (e.g. "Si-O", "Total").
[in]optsDetection parameters and tuning options.
Returns
Detected CutoffResult or DetectionError.
Here is the call graph for this function:

◆ detectCutoffs() [2/2]

std::expected< CutoffResult, DetectionError > correlation::analysis::FirstMinimumDetector::detectCutoffs ( std::span< const real_t > r_bins,
std::span< const real_t > g_r,
const DetectionOptions & opts = {} )
staticnodiscard

Detects first coordination shell cutoffs from raw or smoothed spans.

Parameters
[in]r_binsRadial grid coordinates in Ångströms.
[in]g_rRadial distribution intensities.
[in]optsDetection parameters and tuning options.
Returns
Detected CutoffResult or DetectionError.
Here is the caller graph for this function:

◆ formatError()

std::string_view correlation::analysis::FirstMinimumDetector::formatError ( DetectionError error)
staticnodiscardnoexcept

Converts a DetectionError to a human-readable diagnostic message.

Parameters
[in]errorTarget error code.
Returns
Descriptive error string.

The documentation for this class was generated from the following files: