Working Version with Population update and T+ interactions.
This commit is contained in:
@@ -9,11 +9,12 @@
|
||||
#ifndef random_operations_h
|
||||
#define random_operations_h
|
||||
|
||||
#include "kinematics.h"
|
||||
|
||||
#include <random/uniform.h>
|
||||
#include <random/normal.h>
|
||||
|
||||
#include "kinematics.h"
|
||||
|
||||
|
||||
typedef ranlib::Uniform<double> UniRNG;
|
||||
typedef ranlib::NormalUnit<double> NormalRNG;
|
||||
|
||||
@@ -29,7 +30,6 @@ protected:
|
||||
NormalRNG *rngNormal;
|
||||
};
|
||||
|
||||
|
||||
inline vec3 roll_uniform_direction(ranlib::Uniform<double> *rngUni) {
|
||||
vec3 dir;
|
||||
double phi = 2*pi*rngUni->random();
|
||||
@@ -62,4 +62,5 @@ inline double roll_Rejectionmethod(double (*pdf)(double), double xmin, double xm
|
||||
return(xcan);
|
||||
}
|
||||
|
||||
|
||||
#endif /* random_operations_h */
|
||||
|
||||
Reference in New Issue
Block a user