Jpp
17.3.1
the software that should make you happy
|
Implementation of the JGenerator interface. More...
#include <JMarkovGenerator.hh>
Public Member Functions | |
JExponentialGenerator (double _r1, double _r2, double _L) | |
Constructor. More... | |
double | getWeight (JPosition3D pos) |
return the weight (=probability density dP/dV) for the given position. More... | |
JPosition3D | getPosition () |
Return a randomly generated position. More... | |
double | getR () |
double | getWeight (double r) |
Protected Member Functions | |
double | getIntegrand (double r) |
double | getInvertedIntegrand (double x) |
return value y such that getIntegrand(y) = x More... | |
Protected Attributes | |
double | r1 |
double | r2 |
double | L |
double | C |
double | ximin |
double | ximax |
Implementation of the JGenerator interface.
Generates positions according to an exponential distribution, around the origin, i.e. with probability density
rho( vec x ) = alpha * exp(-r/l)
for given l. The minimal and maximal values of r are given by r1 and r2, respectively.
Definition at line 276 of file JMarkovGenerator.hh.
|
inline |
Constructor.
_r1 and _r2 are the minimal and maximal allowed value of r. _L is the length scale.
Definition at line 285 of file JMarkovGenerator.hh.
|
inlinevirtual |
return the weight (=probability density dP/dV) for the given position.
When the generator is properly normalized, the integral of this quantity over the whole space is 1.
Implements JMARKOV::JGenerator.
Definition at line 294 of file JMarkovGenerator.hh.
|
inlinevirtual |
Return a randomly generated position.
Implements JMARKOV::JGenerator.
Definition at line 298 of file JMarkovGenerator.hh.
|
inline |
Definition at line 305 of file JMarkovGenerator.hh.
|
inline |
Definition at line 312 of file JMarkovGenerator.hh.
|
inlineprotected |
Definition at line 319 of file JMarkovGenerator.hh.
|
inlineprotected |
return value y such that getIntegrand(y) = x
Definition at line 324 of file JMarkovGenerator.hh.
|
protected |
Definition at line 350 of file JMarkovGenerator.hh.
|
protected |
Definition at line 351 of file JMarkovGenerator.hh.
|
protected |
Definition at line 352 of file JMarkovGenerator.hh.
|
protected |
Definition at line 353 of file JMarkovGenerator.hh.
|
protected |
Definition at line 354 of file JMarkovGenerator.hh.
|
protected |
Definition at line 355 of file JMarkovGenerator.hh.