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
db5e7850
Commit
db5e7850
authored
May 09, 2012
by
Davis King
Browse files
merged
parents
b2d7f83f
34dbc02d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
dlib/optimization/find_max_factor_graph_viterbi.h
dlib/optimization/find_max_factor_graph_viterbi.h
+1
-1
dlib/test/find_max_factor_graph_viterbi.cpp
dlib/test/find_max_factor_graph_viterbi.cpp
+10
-1
No files found.
dlib/optimization/find_max_factor_graph_viterbi.h
View file @
db5e7850
...
@@ -18,7 +18,7 @@ namespace dlib
...
@@ -18,7 +18,7 @@ namespace dlib
{
{
struct
viterbi_data
struct
viterbi_data
{
{
viterbi_data
()
:
val
(
0
),
back_index
(
0
)
{}
viterbi_data
()
:
val
(
-
std
::
numeric_limits
<
double
>::
infinity
()
),
back_index
(
0
)
{}
double
val
;
double
val
;
unsigned
long
back_index
;
unsigned
long
back_index
;
};
};
...
...
dlib/test/find_max_factor_graph_viterbi.cpp
View file @
db5e7850
...
@@ -187,8 +187,17 @@ namespace
...
@@ -187,8 +187,17 @@ namespace
do_test
<
0
,
3
,
8
>
();
do_test
<
0
,
3
,
8
>
();
do_test
<
4
,
3
,
1
>
();
do_test
<
4
,
3
,
1
>
();
do_test
<
4
,
3
,
0
>
();
do_test
<
4
,
3
,
0
>
();
do_test
<
0
,
3
,
0
>
();
do_test
<
3
,
2
,
1
>
();
do_test
<
3
,
2
,
0
>
();
do_test
<
3
,
2
,
2
>
();
do_test
<
2
,
2
,
1
>
();
do_test_negative
<
3
,
2
,
1
>
();
do_test_negative
<
3
,
2
,
0
>
();
do_test_negative
<
3
,
2
,
2
>
();
do_test_negative
<
2
,
2
,
1
>
();
do_test
<
0
,
3
,
0
>
();
do_test
<
1
,
2
,
8
>
();
do_test
<
1
,
2
,
8
>
();
do_test
<
2
,
2
,
7
>
();
do_test
<
2
,
2
,
7
>
();
do_test
<
3
,
2
,
8
>
();
do_test
<
3
,
2
,
8
>
();
...
...
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