SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ModelFitting::SersicProfile Class Reference

#include <SersicProfile.h>

Collaboration diagram for ModelFitting::SersicProfile:

Public Member Functions

 SersicProfile (std::shared_ptr< BasicParameter > i0, std::shared_ptr< BasicParameter > n, std::shared_ptr< BasicParameter > k)
 SersicProfile (const SersicProfile &other)
virtual ~SersicProfile ()
double operator() (double r) const

Private Attributes

std::shared_ptr< BasicParameterm_i0
std::shared_ptr< BasicParameterm_n
std::shared_ptr< BasicParameterm_k

Detailed Description

Mathematical function that describes how the intensity I of a galaxy varies with distance R.

\( I=I_0 * e ^ {-k * R^{1 / n}} \)

Definition at line 35 of file SersicProfile.h.

Constructor & Destructor Documentation

◆ SersicProfile() [1/2]

ModelFitting::SersicProfile::SersicProfile ( std::shared_ptr< BasicParameter > i0,
std::shared_ptr< BasicParameter > n,
std::shared_ptr< BasicParameter > k )

Constructor

Parameters
i0Intensity at the center
nSersic index. n=1 is exponential and n=4 de Vaucouleurs
kA constant that multiplies the term \( R^{1 / n} \)

Definition at line 29 of file SersicProfile.cpp.

References m_i0, m_k, and m_n.

Referenced by SersicProfile().

◆ SersicProfile() [2/2]

ModelFitting::SersicProfile::SersicProfile ( const SersicProfile & other)

Copy constructor

Definition at line 33 of file SersicProfile.cpp.

References m_i0, m_k, m_n, and SersicProfile().

Here is the call graph for this function:

◆ ~SersicProfile()

ModelFitting::SersicProfile::~SersicProfile ( )
virtualdefault

Destructor

Member Function Documentation

◆ operator()()

double ModelFitting::SersicProfile::operator() ( double r) const

Evaluate the Sersic profile at the given distance

Parameters
rThe distance from the origin

Definition at line 39 of file SersicProfile.cpp.

References std::exp(), m_i0, m_k, m_n, and std::pow().

Here is the call graph for this function:

Member Data Documentation

◆ m_i0

std::shared_ptr<BasicParameter> ModelFitting::SersicProfile::m_i0
private

Definition at line 69 of file SersicProfile.h.

Referenced by operator()(), SersicProfile(), and SersicProfile().

◆ m_k

std::shared_ptr<BasicParameter> ModelFitting::SersicProfile::m_k
private

Definition at line 71 of file SersicProfile.h.

Referenced by operator()(), SersicProfile(), and SersicProfile().

◆ m_n

std::shared_ptr<BasicParameter> ModelFitting::SersicProfile::m_n
private

Definition at line 70 of file SersicProfile.h.

Referenced by operator()(), SersicProfile(), and SersicProfile().


The documentation for this class was generated from the following files: