Public Member Functions | List of all members
PowerLawDistribution Class Reference

Power law spatial distribution. More...

#include <PowerLawDistribution.hpp>

Inheritance diagram for PowerLawDistribution:
Inheritance graph
[legend]
Collaboration diagram for PowerLawDistribution:
Collaboration graph
[legend]

Public Member Functions

 PowerLawDistribution (double A, double b, Vector2D const &center=Vector2D(0, 0))
 Class constructor. More...
 
double operator() (const Vector2D &point) const
 Evaluates the function. More...
 

Detailed Description

Power law spatial distribution.

Definition at line 13 of file PowerLawDistribution.hpp.

Constructor & Destructor Documentation

◆ PowerLawDistribution()

PowerLawDistribution::PowerLawDistribution ( double  A,
double  b,
Vector2D const &  center = Vector2D(0,0) 
)

Class constructor.

Parameters
AThe prefactor. The distribution is given as A*(x-center)^b
bThe exponent
centerThe location of the star

Definition at line 3 of file PowerLawDistribution.cpp.

Member Function Documentation

◆ operator()()

double PowerLawDistribution::operator() ( const Vector2D point) const
virtual

Evaluates the function.

Parameters
pointPosition
Returns
The value of the function at the point

Implements SpatialDistribution.

Definition at line 6 of file PowerLawDistribution.cpp.

Here is the call graph for this function:

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