Jpp
17.2.0
the software that should make you happy
|
Implementation of the JGenerator interface. More...
#include <JMarkovGenerator.hh>
Public Member Functions | |
JTripleGenerator (double c1, JGenerator *g1, double c2, JGenerator *g2, double c3, JGenerator *g3) | |
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 | |
JCombinedGenerator | gsub |
JCombinedGenerator | g |
Implementation of the JGenerator interface.
Generates positions by combining three other JGenerators
Definition at line 446 of file JMarkovGenerator.hh.
|
inline |
Constructor.
The arguments gn are pointers to the three JGenerators to use. Note that ownership is not transferred, i.e.
The arguments cn are the relative weights of the two generators. They do not have to add up to 1. The probability that a value is generated from gi is ci/(c1+c2+c3).
Definition at line 463 of file JMarkovGenerator.hh.
|
inlinevirtual |
Return a randomly generated position.
Implements JMARKOV::JGenerator.
Definition at line 466 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 468 of file JMarkovGenerator.hh.
|
protected |
Definition at line 472 of file JMarkovGenerator.hh.
|
protected |
Definition at line 473 of file JMarkovGenerator.hh.