A Sampler for sampling a position for the singlewell potential F(x,y) = (x^4 + y^4)/2, see SingleWell.
More...
#include <single_well.h>
A Sampler for sampling a position for the singlewell potential F(x,y) = (x^4 + y^4)/2, see SingleWell.
◆ Position
◆ SWPositionSampler()
Create a sampler.
- Parameters
-
| [in] | bottom_left | Coordinates of the bottom left corner of the range in which should be samples. |
| [in] | top_right | Coordinates of the top right corner of the range in which should be samples. |
| [in] | margin | Margin defining the distance that should be kept from the borders defined by bottom_left and top_right when sampling a position. |
◆ operator()()
| Position SWPositionSampler::operator() |
( |
| ) |
const |
|
inline |
Sampling a position within [bottom_left.x + margin, bottom_left.y + margin] x [top_right.x - margin, top_right.y - margin].
◆ m_range