Jpp
18.0.0-rc.3
the software that should make you happy
|
Implementation of the JGenerator interface. More...
#include <JMarkovGenerator.hh>
Public Member Functions | |
JShiftedGenerator (JGenerator *_g, JPosition3D _shift) | |
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 Attributes | |
JGenerator * | g |
JPosition3D | shift |
Implementation of the JGenerator interface.
Generates positions by shifting the positions from another JGenerator
Definition at line 481 of file JMarkovGenerator.hh.
|
inline |
Constructor.
_g is a pointer to some other generator, note that memory ownership of the instance pointed to by _g is not transferred, so
Definition at line 493 of file JMarkovGenerator.hh.
|
inlinevirtual |
Return a randomly generated position.
Implements JMARKOV::JGenerator.
Definition at line 496 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 500 of file JMarkovGenerator.hh.
|
protected |
Definition at line 506 of file JMarkovGenerator.hh.
|
protected |
Definition at line 507 of file JMarkovGenerator.hh.