aboutsummaryrefslogtreecommitdiffstats
path: root/mass_profile/nfw.hpp
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2017-02-20 12:26:17 +0800
committerAaron LI <aaronly.me@outlook.com>2017-02-20 12:26:17 +0800
commit4ea7a05ea9a7352602f1f48a860fd81c36e8bc04 (patch)
treebeab7ec18d48c3e2093cd35fd8c79bd66f604a03 /mass_profile/nfw.hpp
parent9cec16d87f6dc2e0b34b605d88d0837a4a48d18c (diff)
downloadchandra-acis-analysis-4ea7a05ea9a7352602f1f48a860fd81c36e8bc04.tar.bz2
Rename mass_profile to src; Add install & uninstall to Makefile
Diffstat (limited to 'mass_profile/nfw.hpp')
-rw-r--r--mass_profile/nfw.hpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/mass_profile/nfw.hpp b/mass_profile/nfw.hpp
deleted file mode 100644
index 8e3e59e..0000000
--- a/mass_profile/nfw.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- \file nfw.hpp
- \brief Jingying Wang's model
- \author Jingying Wang
- */
-
-
-#ifndef NFW
-#define NFW
-#define OPT_HEADER
-#include <core/fitter.hpp>
-#include <cmath>
-
-namespace opt_utilities
-{
- template <typename T>
- class nfw
- :public model<T,T,std::vector<T>,std::string>
- {
- private:
- model<T,T,std::vector<T> >* do_clone()const
- {
- return new nfw<T>(*this);
- }
-
- const char* do_get_type_name()const
- {
- return "1d power law";
- }
- public:
- nfw()
- {
- this->push_param_info(param_info<std::vector<T> >("rho0",1,0,1e99));
- this->push_param_info(param_info<std::vector<T> >("rs",100,0,1e99));
- }
-
- T do_eval(const T& r,const std::vector<T>& param)
- {
- T rho0=std::abs(param[0]);
- T rs=std::abs(param[1]);
- static const T pi=4*std::atan(1);
- return 4*pi*rho0*rs*rs*rs*(std::log((r+rs)/rs)-r/(r+rs));
- }
-
- private:
- std::string do_get_information()const
- {
- return "";
- }
- };
-}
-
-
-
-#endif
-//EOF