PowerLawDistribution.hpp
Go to the documentation of this file.
1 
6 #ifndef POWERLAW_HPP
7 #define POWERLAW_HPP 1
8 
9 #include "../spatial_distribution2d.hpp"
10 #include <cmath>
11 
14 {
15 public:
22  PowerLawDistribution(double A,double b,Vector2D const& center=Vector2D(0,0));
23 
24  double operator()(const Vector2D& point) const;
25 private:
26  const double A_;
27  const double b_;
28  const Vector2D center_;
29 };
30 #endif //POWERLAW_HPP
Spatial distribution for initial conditions.
Power law spatial distribution.
double operator()(const Vector2D &point) const
Evaluates the function.
2D Mathematical vector
Definition: geometry.hpp:15
PowerLawDistribution(double A, double b, Vector2D const &center=Vector2D(0, 0))
Class constructor.