Definition at line 27 of file IPositionBuilder.h.
◆ ~IPositionBuilder()
IPositionBuilder::~IPositionBuilder |
( |
| ) |
|
|
virtualdefault |
◆ generatePositions()
std::vector< std::vector< double > > IPositionBuilder::generatePositions |
( |
double |
layer_size, |
|
|
double |
density = 0.0 |
|
) |
| const |
Definition at line 29 of file IPositionBuilder.cpp.
36 std::random_device rd;
37 std::mt19937 gen(rd());
38 std::normal_distribution<double> dis(0.0, std::sqrt(pos_var));
39 for (
auto& position : positions) {
40 for (
auto& coordinate : position)
41 coordinate += dis(gen);
virtual std::vector< std::vector< double > > generatePositionsImpl(double layer_size, double density=0.0) const =0
virtual double positionVariance() const =0
References generatePositionsImpl(), and positionVariance().
◆ generatePositionsImpl()
virtual std::vector<std::vector<double> > IPositionBuilder::generatePositionsImpl |
( |
double |
layer_size, |
|
|
double |
density = 0.0 |
|
) |
| const |
|
privatepure virtual |
◆ positionVariance()
virtual double IPositionBuilder::positionVariance |
( |
| ) |
const |
|
privatepure virtual |
The documentation for this class was generated from the following files: