MADNESS 0.10.1
|
#include <masks_and_boxes.h>
Static Public Member Functions | |
static double | compute_factor (const double &r, const double &tightness, const double &rmax) |
return a smooth transition of linear r to a constant at radius r | |
static double | compute_tightness (const double deviation_at_dot_8_radius, const double rmax) |
compute the tightness parameter given the deviation at 0.8 radius | |
construct a smooth approximation for the piecewise function f(x)={{x, x<1}, {1,x>1}}. see https://doi.org/10.1186/s40064-016-3278-y
|
inlinestatic |
return a smooth transition of linear r to a constant at radius r
[in] | r | norm of the n-dimensional vector |
[in] | tightness | see the compute_tightness() function |
[in] | max_radius | where the curve flattens |
References a, b, beta, c, and madness::f.
Referenced by madness::R_times_arg_div_R::operator()(), madness::harmonic_potential_boxed::operator()(), and test_smooth_maxout().
|
inlinestatic |
compute the tightness parameter given the deviation at 0.8 radius
simple linear fit
Referenced by madness::harmonic_potential_boxed::harmonic_potential_boxed(), madness::R_times_arg_div_R::R_times_arg_div_R(), and test_smooth_maxout().