Skip to content

Commit 6d83a35

Browse files
committed
Fix bugs
1 parent b817928 commit 6d83a35

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/rlenvs/utils/geometry/shapes/circle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ inline
8888
real_t
8989
Circle::area()const{
9090

91-
return MathConsts::PI*r_*r_;
91+
return rlenvscpp::consts::maths::PI*r_*r_;
9292

9393
}
9494

src/rlenvs/utils/maths/statistics/distributions/normal_dist.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#ifndef NORMAL_DIST_H
22
#define NORMAL_DIST_H
33

4-
#include "cubeai/base/cubeai_types.h"
5-
#include "cubeai/base/math_constants.h"
4+
#include "rlenvs/rlenvs_types_v2.h"
5+
#include "rlenvs/rlenvs_consts.h"
66

77
#include <vector>
88
#include <random>
99
#include <cmath>
1010
#include <numbers>
1111

12-
namespace cuberl {
12+
namespace rlenvscpp {
13+
namespace utils{
1314
namespace maths {
1415
namespace stats {
1516

@@ -149,7 +150,7 @@ NormalDist<RealType>::pdf(RealType x)const{
149150

150151
auto mu = dist_.mean();
151152
auto std = dist_.stddev();
152-
auto pi = cubeai::MathConsts::PI;
153+
auto pi = rlenvscpp::consts::maths::PI;
153154
auto factor = 1.0/(std * std::sqrt(2.0 * pi));
154155
auto exp = std::exp(-0.5*std::pow((x - mu) / std, 2.0));
155156
return factor * exp;
@@ -159,6 +160,6 @@ NormalDist<RealType>::pdf(RealType x)const{
159160
}
160161
}
161162
}
163+
}
162164

163-
164-
#endif
165+
#endif

0 commit comments

Comments
 (0)