SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SersicProfile.cpp
Go to the documentation of this file.
1
22
23#include <cmath>
24#include <memory>
26
27namespace ModelFitting {
28
32
34 : m_i0 {other.m_i0}, m_n{other.m_n}, m_k{other.m_k} {
35}
36
38
39double SersicProfile::operator()(double r) const {
40 return m_i0->getValue() * std::exp(-m_k->getValue() * std::pow(r, 1. / m_n->getValue()));
41}
42
43} // end of namespace ModelFitting
std::shared_ptr< BasicParameter > m_k
std::shared_ptr< BasicParameter > m_n
std::shared_ptr< BasicParameter > m_i0
SersicProfile(std::shared_ptr< BasicParameter > i0, std::shared_ptr< BasicParameter > n, std::shared_ptr< BasicParameter > k)
double operator()(double r) const
T exp(T... args)
T pow(T... args)