Commit 23604f38 authored by Davis King's avatar Davis King

Added a missing requires clause

parent 7c95a2ac
...@@ -24,6 +24,13 @@ namespace dlib ...@@ -24,6 +24,13 @@ namespace dlib
double eps double eps
) )
{ {
// make sure requires clause is not broken
DLIB_ASSERT( eps > 0,
"\t void find_map_nmplp()"
<< "\n\t eps must be greater than zero"
<< "\n\t eps: " << eps
);
/* /*
This function is an implementation of the NMPLP algorithm introduced in the This function is an implementation of the NMPLP algorithm introduced in the
following paper: following paper:
......
...@@ -311,6 +311,7 @@ namespace dlib ...@@ -311,6 +311,7 @@ namespace dlib
- for all valid i: prob.num_states(i) >= 2 - for all valid i: prob.num_states(i) >= 2
- map_problem == an object with an interface compatible with the map_problem - map_problem == an object with an interface compatible with the map_problem
object defined at the top of this file. object defined at the top of this file.
- eps > 0
ensures ensures
- This function is a tool for approximately solving the MAP problem in a graphical - This function is a tool for approximately solving the MAP problem in a graphical
model or factor graph with pairwise potential functions. That is, it attempts model or factor graph with pairwise potential functions. That is, it attempts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment