Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
runningstats
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
dataAnalysis
runningstats
Commits
266e1f10
Commit
266e1f10
authored
2 months ago
by
Jakobsen, Mads Bregenholt
Browse files
Options
Downloads
Patches
Plain Diff
removed std cout qith debug
parent
8003b97f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/runningstats/runningstats_impl.cpp
+0
-8
0 additions, 8 deletions
src/runningstats/runningstats_impl.cpp
with
0 additions
and
8 deletions
src/runningstats/runningstats_impl.cpp
+
0
−
8
View file @
266e1f10
...
...
@@ -19,14 +19,8 @@ struct running_mean
void
add
(
double
value
)
{
std
::
cout
<<
"adding value "
<<
value
<<
"
\n
"
;
std
::
cout
<<
"current: count "
<<
count
<<
" and mean "
<<
mean
<<
"
\n
"
;
count
++
;
mean
+=
(
value
-
mean
)
/
static_cast
<
double
>
(
count
);
std
::
cout
<<
"NEW: count "
<<
count
<<
" and mean "
<<
mean
<<
"
\n
"
;
}
};
...
...
@@ -46,7 +40,6 @@ void running_stats(
// run through data
for
(
std
::
uint32_t
idx
=
0
;
idx
<
data_size
;
idx
++
)
{
std
::
cout
<<
"handling idx "
<<
idx
<<
"
\n
"
;
const
double
value
=
static_cast
<
double
>
(
data
[
idx
]);
// we do not process non finite values
...
...
@@ -60,7 +53,6 @@ void running_stats(
// add to mean
reinterpret_cast
<
running_mean
*>
(
running_mean_mem
+
2
*
idx
)
->
add
(
value
);
}
*
nanmean_of_data
=
nan_mean
.
mean
;
...
...
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