SourceXtractorPlusPlus  0.14
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
ModelFitting::SersicProfile Class Reference

#include <SersicProfile.h>

Collaboration diagram for ModelFitting::SersicProfile:
[legend]

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

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.

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

Copy constructor

Definition at line 33 of file SersicProfile.cpp.

References m_i0.

ModelFitting::SersicProfile::~SersicProfile ( )
virtualdefault

Destructor

Member Function Documentation

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

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

Definition at line 69 of file SersicProfile.h.

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

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

Definition at line 71 of file SersicProfile.h.

Referenced by operator()().

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

Definition at line 70 of file SersicProfile.h.

Referenced by operator()().


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