| 1 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 2 |
// Author: Kristian Lytje |
| 3 |
|
| 4 |
#include <hist/intensity_calculator/foxs/CompositeDistanceHistogramFoXS.h> |
| 5 |
#include <settings/HistogramSettings.h> |
| 6 |
|
| 7 |
using namespace ausaxs; |
| 8 |
using namespace ausaxs::hist; |
| 9 |
|
| 10 |
Limit CompositeDistanceHistogramFoXS::get_excluded_volume_scaling_factor_limits() const { |
| 11 |
return {0.8, 1.2}; |
| 12 |
} |
| 13 |
|
| 14 |
double CompositeDistanceHistogramFoXS::exv_factor(double q, double cx) { |
| 15 |
constexpr double rm = 1.58; |
| 16 |
constexpr double c = rm*rm/(4*std::numbers::pi); |
| 17 |
return std::pow(cx, 3)*std::exp(-c*(std::pow(cx, 2) - 1)*q*q); |
| 18 |
} |
| 19 |
|
| 20 |
double CompositeDistanceHistogramFoXS::exv_factor(double q) const { |
| 21 |
return exv_factor(q, free_params.cx); |
| 22 |
} |