File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
maths/statistics/distributions Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 8888real_t
8989Circle::area ()const {
9090
91- return MathConsts ::PI*r_*r_;
91+ return rlenvscpp::consts::maths ::PI*r_*r_;
9292
9393}
9494
Original file line number Diff line number Diff line change 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 {
1314namespace maths {
1415namespace 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
You can’t perform that action at this time.
0 commit comments