Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
deccc99c
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "e7e45bd127150e30e61cbbe912cdeb8804f30b18"
Commit
deccc99c
authored
Feb 23, 2018
by
Davis King
Browse files
Fixed bug in unit tests.
parent
af1af6d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
dlib/test/statistics.cpp
dlib/test/statistics.cpp
+7
-3
No files found.
dlib/test/statistics.cpp
View file @
deccc99c
...
...
@@ -816,7 +816,8 @@ namespace
{
rs
.
add
(
rnd
.
get_random_gaussian
()
+
1
);
tmp
[
i
]
+=
rs
.
mean
();
tmp_var
[
i
]
+=
rs
.
variance
();
if
(
i
>
0
)
tmp_var
[
i
]
+=
rs
.
variance
();
}
}
...
...
@@ -845,8 +846,11 @@ namespace
{
rs
.
add
(
rnd
.
get_random_gaussian
()
+
1
,
rnd
.
get_random_gaussian
()
+
1
);
tmp
[
i
]
+=
(
rs
.
mean_y
()
+
rs
.
mean_x
())
/
2
;
tmp_var
[
i
]
+=
(
rs
.
variance_y
()
+
rs
.
variance_x
())
/
2
;
tmp_covar
[
i
]
+=
rs
.
covariance
();
if
(
i
>
0
)
{
tmp_var
[
i
]
+=
(
rs
.
variance_y
()
+
rs
.
variance_x
())
/
2
;
tmp_covar
[
i
]
+=
rs
.
covariance
();
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment