Jpp
master_rocky-37-gf0c5bc59d
the software that should make you happy
|
The 'magical distributions' are a class of distributions. More...
#include <JMarkovGenerator.hh>
Public Member Functions | |
JMagicalDistribution (unsigned int _N, double _lambda) | |
~JMagicalDistribution () | |
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 | |
unsigned int | N |
double | lambda |
JExpRsqInvGenerator | gen |
TH1F * | h |
The 'magical distributions' are a class of distributions.
The magical distribution of degree N is the distribution of the distance to the origin after taking N random steps where the step size r is drawn from an "exponential inverse r-squared" 1/r^2 exp(-r/lambda) distribution, which is the base behaviour for scattering
Note that it seems to satisfy the property (for lambda = 1 ) mean = -0.5 + sqrt( (1+8*n)/4 )
Definition at line 192 of file JMarkovGenerator.hh.
|
inline |
Definition at line 196 of file JMarkovGenerator.hh.
|
inline |
Definition at line 210 of file JMarkovGenerator.hh.
|
inlinevirtual |
Return a randomly generated position.
Implements JMARKOV::JGenerator.
Definition at line 214 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 221 of file JMarkovGenerator.hh.
|
protected |
Definition at line 229 of file JMarkovGenerator.hh.
|
protected |
Definition at line 230 of file JMarkovGenerator.hh.
|
protected |
Definition at line 231 of file JMarkovGenerator.hh.
|
protected |
Definition at line 232 of file JMarkovGenerator.hh.