8#ifndef mx_AO_analysis_aoConstants_hpp
9#define mx_AO_analysis_aoConstants_hpp
13#include "../../math/constants.hpp"
24template <
typename floatT>
33 a_sf = pow(
static_cast<floatT
>( 24 ) /
static_cast<floatT
>( 5 ) * gam1,
34 static_cast<floatT
>( 5 ) /
static_cast<floatT
>( 6 ) );
36 a_psd = a_sf * gam1 * gam1 * sin(
static_cast<floatT
>( 5 ) * pi /
static_cast<floatT
>( 6 ) ) /
37 pow( pi,
static_cast<floatT
>( 11 ) /
static_cast<floatT
>( 3 ) );
39 a_sf = a_sf *
static_cast<floatT
>( 2 );
57template <
typename floatT>
60 return static_cast<floatT
>( 6.8838771822938116152935575630969803178936813057678 );
78template <
typename floatT>
81 return static_cast<floatT
>( 0.0218139977034218241674821945866523430205216037234 );
void calcConstants(floatT &a_sf, floatT &a_psd)
Calculate the AO constants.
Declares and defines the gamma function.
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.
T tgamma(T x)
The Gamma Function.
constexpr T pi()
Get the value of pi.