Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jrl-walkgen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Guilhem Saurel
jrl-walkgen
Commits
36f9abd4
Commit
36f9abd4
authored
9 years ago
by
MaximilienNaveau
Browse files
Options
Downloads
Patches
Plain Diff
remove useless function
parent
264610f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake
+1
-1
1 addition, 1 deletion
cmake
tests/TestNaveau2015.cpp
+0
-20
0 additions, 20 deletions
tests/TestNaveau2015.cpp
with
1 addition
and
21 deletions
cmake
@
370de4f4
Compare
e5b52669
...
370de4f4
Subproject commit
e5b52669621f961014f1e395d99643bdc662883a
Subproject commit
370de4f4f8ca6122c7ddc13583a7a9465ccc8ad6
This diff is collapsed.
Click to expand it.
tests/TestNaveau2015.cpp
+
0
−
20
View file @
36f9abd4
...
...
@@ -82,26 +82,6 @@ enum Profiles_t {
PROFIL_NAVEAU_ONLINE_WALKING
// 1
};
///gets White Gaussian Noise
///having a given bias and standard deviation(std)
double
getWGNoise
(
double
std
,
double
bias
)
{
std
::
random_device
rd
;
std
::
mt19937
gen
(
rd
());
// values near the mean are the most likely
// standard deviation affects the dispersion of generated values from the mean
std
::
normal_distribution
<>
d
(
std
,
bias
);
std
::
map
<
int
,
int
>
hist
;
for
(
int
n
=
0
;
n
<
10000
;
++
n
)
{
++
hist
[
std
::
round
(
d
(
gen
))];
}
for
(
auto
p
:
hist
)
{
std
::
cout
<<
std
::
fixed
<<
std
::
setprecision
(
1
)
<<
std
::
setw
(
2
)
<<
p
.
first
<<
' '
<<
std
::
string
(
p
.
second
/
200
,
'*'
)
<<
'\n'
;
}
}
class
IO_TextFile
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment