Page MenuHomec4science

brownian_movement.hh
No OneTemporary

File Metadata

Created
Wed, Aug 14, 16:27

brownian_movement.hh

#include <particle_movement.hh>
#ifndef BROWNIAN_MOVEMENT_H
#define BROWNIAN_MOVEMENT_H
namespace simulation{
template <typename type>
class brownian_movement: public particle_movement<type>{
public:
brownian_movement(int dim, int rng_seed);
~brownian_movement();
type* delta_x();
double get_rand();
private:
std::mt19937 generator;
std::uniform_real_distribution<double> dis;
int D;
type *dr;
int axis_rand;
int sign_rand;
double temp;
};
}
#endif

Event Timeline