|
Jpp
master_rocky-43-ge265d140c
the software that should make you happy
|
Implementation of the JGenerator interface. More...
#include <JMarkovGenerator.hh>
Public Member Functions | |
| JBallGenerator (double _R) | |
| Constructor. More... | |
| JPosition3D | getPosition () |
| Return a randomly generated position. More... | |
| double | getWeight (JPosition3D pos) |
| return the weight (=probability density dP/dV) for the given position. More... | |
Protected Member Functions | |
| void | setVolume () |
Protected Attributes | |
| const double | R |
| const double | Rcube |
| double | V |
Implementation of the JGenerator interface.
Generates positions uniformly within a ball of a given radius centered around the origin.
Definition at line 114 of file JMarkovGenerator.hh.
|
inline |
Constructor.
The argument is the radius of the ball.
Definition at line 120 of file JMarkovGenerator.hh.
|
inlinevirtual |
Return a randomly generated position.
Implements JMARKOV::JGenerator.
Definition at line 124 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 132 of file JMarkovGenerator.hh.
|
inlineprotected |
Definition at line 139 of file JMarkovGenerator.hh.
|
protected |
Definition at line 141 of file JMarkovGenerator.hh.
|
protected |
Definition at line 142 of file JMarkovGenerator.hh.
|
protected |
Definition at line 143 of file JMarkovGenerator.hh.