16 lines
397 B
C++
16 lines
397 B
C++
|
|
#include "random.h"
|
|
|
|
|
|
RandomJump::RandomJump(const double delta, const double eta, std::mt19937_64 &rng) : Motion(std::string("RandomJump"), delta, eta, rng) {}
|
|
|
|
RandomJump::RandomJump(std::mt19937_64 &rng) : Motion(std::string("RandomJump"), rng) {}
|
|
|
|
void RandomJump::initialize() {
|
|
m_initial_omega = RandomJump::jump();
|
|
}
|
|
|
|
double RandomJump::jump() {
|
|
return omega_q(draw_position());
|
|
}
|