Struct BoltzmannHMCWalk::Walk::Settings

struct Settings

A struct containing the parameters for the random walk.

Public Functions

template<typename Point>
inline Settings(const int walkLength, const RandomNumberGenerator &randomNumberGenerator, const Point &c, const NT temperature, const NT diameter, unsigned int reflectionsBound = 100, NT dl = 0.995)

Constructs an object of Settings

Parameters:
  • walkLength[in] The number of points to “burn”, before keeping the following as a sample

  • rng[in] For generating random numbers

  • c[in] The c in the distribution

  • temperature[in] The T in the distribution

  • diameter[in] The diameter of the convexbody

  • reflectionsBound[in] at each iteration allow reflectionsBound*dimension reflections at most

  • dl[in] approach the boundary with a factor of dl, for numerical stability

Returns:

An instance of this struct

inline Settings()

Public Members

int walk_length

The number of points to “burn”, before keeping the following as a sample.

RandomNumberGenerator randomNumberGenerator

For generating random numbers.

VT c

The c in the distribution.

NT temperature

The T in the distribution.

NT diameter

The diameter of the body.

unsigned int reflectionsBound

Set the number of allowed reflections at each step: #reflections < reflectionsBound * dimension.

NT dl

When determining we can move d long till we reach the boundary, we walk d*dl, for numerical stability.