Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
bb59a325
Commit
bb59a325
authored
Aug 29, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarified the spec
parent
6cac033c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
6 deletions
+45
-6
find_map_nmplp_abstract.h
dlib/optimization/find_map_nmplp_abstract.h
+45
-6
No files found.
dlib/optimization/find_map_nmplp_abstract.h
View file @
bb59a325
...
@@ -16,9 +16,14 @@ namespace dlib
...
@@ -16,9 +16,14 @@ namespace dlib
/*!
/*!
WHAT THIS OBJECT REPRESENTS
WHAT THIS OBJECT REPRESENTS
This object represents a factor graph or graphical model. In
This object represents a factor graph or graphical model. In
particular, this
documen
t defines the interface a MAP problem on
particular, this
objec
t defines the interface a MAP problem on
a factor graph must implement if it is to be solved using the
a factor graph must implement if it is to be solved using the
find_map_nmplp() routine defined at the bottom of this file.
find_map_nmplp() routine defined at the bottom of this file.
Note that there is no dlib::map_problem object. What you are
looking at here is simply the interface definition for a map problem.
You must implement your own version of this object for the problem
you wish to solve and then pass it to the find_map_nmplp() routine.
!*/
!*/
public
:
public
:
...
@@ -31,9 +36,9 @@ namespace dlib
...
@@ -31,9 +36,9 @@ namespace dlib
the nodes/variables in this factor graph.
the nodes/variables in this factor graph.
Note that you can't dereference the iterator and
Note that you can't dereference the iterator and
obtain a value. Th
e iterator is opaque to the user.
obtain a value. Th
at is, the iterator is opaque to
It is used only as arguments to the other methods
the user. It is used only as an argument to the other
defined in this interface.
methods
defined in this interface.
!*/
!*/
public
:
public
:
...
@@ -44,6 +49,23 @@ namespace dlib
...
@@ -44,6 +49,23 @@ namespace dlib
- constructs an iterator in an undefined state
- constructs an iterator in an undefined state
!*/
!*/
node_iterator
(
const
node_iterator
&
item
);
/*!
ensures
- #*this is a copy of item
!*/
node_iterator
&
operator
=
(
const
node_iterator
&
item
);
/*!
ensures
- #*this is a copy of item
- returns #*this
!*/
bool
operator
==
(
bool
operator
==
(
const
node_iterator
&
item
const
node_iterator
&
item
)
const
;
)
const
;
...
@@ -70,7 +92,7 @@ namespace dlib
...
@@ -70,7 +92,7 @@ namespace dlib
ensures
ensures
- advances *this to the next node in the factor graph.
- advances *this to the next node in the factor graph.
- returns a reference to the updated *this
- returns a reference to the updated *this
(i.e. this is the ++object form of
operator++
)
(i.e. this is the ++object form of
the increment operator
)
!*/
!*/
};
};
...
@@ -91,6 +113,23 @@ namespace dlib
...
@@ -91,6 +113,23 @@ namespace dlib
- constructs an iterator in an undefined state
- constructs an iterator in an undefined state
!*/
!*/
neighbor_iterator
(
const
neighbor_iterator
&
item
);
/*!
ensures
- #*this is a copy of item
!*/
neighbor_iterator
&
operator
=
(
const
neighbor_iterator
&
item
);
/*!
ensures
- #*this is a copy of item
- returns #*this
!*/
bool
operator
==
(
bool
operator
==
(
const
neighbor_iterator
&
item
const
neighbor_iterator
&
item
)
const
;
)
const
;
...
@@ -117,7 +156,7 @@ namespace dlib
...
@@ -117,7 +156,7 @@ namespace dlib
ensures
ensures
- advances *this to the next node in the factor graph.
- advances *this to the next node in the factor graph.
- returns a reference to the updated *this
- returns a reference to the updated *this
(i.e. this is the ++object form of
operator++)
(i.e. this is the ++object form of
the increment operator)
!*/
!*/
};
};
...
...
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