Skip to content

Commit 0af7ff9

Browse files
authored
resolve issue #7 (#8)
1 parent e8e1538 commit 0af7ff9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ct_core/include/ct/core/common/UniformNoise.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ class UniformNoise
2525
* @param mean the mean of the uniform distribution
2626
* @param r the half-width of the distribution
2727
*/
28-
UniformNoise(const double mean = 0.0, const double r = 1.0)
29-
: mean_(mean), r_(r), rd_(), eng_(rd_()), distr_(mean-r, mean+r)
30-
{}
28+
UniformNoise(const double mean = 0.0, const double r = 1.0) : rd_(), eng_(rd_()), distr_(mean - r, mean + r) {}
3129

3230
//! Scalar generator
3331
/*!
@@ -70,8 +68,6 @@ class UniformNoise
7068

7169

7270
private:
73-
double mean_;
74-
double r_;
7571

7672
std::random_device rd_;
7773
std::mt19937 eng_;

0 commit comments

Comments
 (0)