8 #ifndef mx_AO_analysis_aoConstants_hpp
9 #define mx_AO_analysis_aoConstants_hpp
14 #include "../../math/constants.hpp"
15 #include "../../math/func/gamma.hpp"
28 template<
typename floatT>
31 floatT
pi = math::pi<floatT>();
33 floatT gam1 = math::func::tgamma<floatT>(
static_cast<floatT
>(6)/
static_cast<floatT
>(5) );
35 floatT gam2 = math::func::tgamma<floatT>(
static_cast<floatT
>(11)/
static_cast<floatT
>(6) );
37 a_sf = pow(
static_cast<floatT
>(24)/
static_cast<floatT
>(5) * gam1,
static_cast<floatT
>(5) /
static_cast<floatT
>(6) );
39 a_psd = a_sf*gam1*gam1*sin(
static_cast<floatT
>(5) *
pi /
static_cast<floatT
>(6) )/ pow(
pi,
static_cast<floatT
>(11)/
static_cast<floatT
>(3) );
41 a_sf = a_sf*
static_cast<floatT
>(2);
59 template<
typename floatT>
62 return static_cast<floatT
>(6.8838771822938116152935575630969803178936813057678);
79 template<
typename floatT>
82 return static_cast<floatT
>(0.0218139977034218241674821945866523430205216037234);
void calcConstants(floatT &a_sf, floatT &a_psd)
Calculate the AO constants.
constexpr floatT a_PSD()
The scaling constant for the Kolmorogov optical phase power spectral density.
constexpr floatT a_SF()
The scaling constant for the Kolmorogov optical phase structure function.
constexpr T pi()
Get the value of pi.