4#include "../../../catch2/catch.hpp"
8#define MX_NO_ERROR_REPORTS
19TEST_CASE(
"compiling 1D Moffat function",
"[math::func::moffat]" )
21 GIVEN(
"the 1D Moffat function" )
26 REQUIRE_THAT( mv, Catch::Matchers::WithinAbs( 1.0, 1e-12 ) );
38TEST_CASE(
"compiling 2D Moffat function",
"[math::func::moffat]" )
40 GIVEN(
"the 2D Moffat function" )
45 REQUIRE_THAT( mv, Catch::Matchers::WithinAbs( 1.0, 1e-12 ) );
57TEST_CASE(
"compiling Moffat FWHM",
"[math::func::moffat]" )
59 GIVEN(
"the Moffat FWHM" )
64 REQUIRE_THAT( mv, Catch::Matchers::WithinAbs( 2.0, 1e-12 ) );
realT moffatFWHM(realT alpha, realT beta)
Compute the full-width at half-maximum of a Moffat profile.
realT moffat(const realT x, const realT I0, const realT Ipk, const realT x0, const realT alpha, const realT beta)
Find value at position (x) of the 1D arbitrarily-centered symmetric unnormalized Moffat function.
realT moffat2D(const realT x, const realT y, const realT I0, const realT Ipk, const realT x0, const realT y0, const realT alpha, const realT beta)
Find value at position (x,y) of the 2D arbitrarily-centered unnormalized symmetric Moffat function.
TEST_CASE("compiling 1D Moffat function", "[math::func::moffat]")
Declarations for utilities related to the Moffat function.