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
0bd9ec07
Commit
0bd9ec07
authored
Nov 09, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the default distances of sample_pair and ordered_sample_pair objects
1 instead of infinity.
parent
0b15dae3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
ordered_sample_pair.h
dlib/graph_utils/ordered_sample_pair.h
+2
-2
ordered_sample_pair_abstract.h
dlib/graph_utils/ordered_sample_pair_abstract.h
+2
-2
sample_pair.h
dlib/graph_utils/sample_pair.h
+2
-2
sample_pair_abstract.h
dlib/graph_utils/sample_pair_abstract.h
+2
-2
No files found.
dlib/graph_utils/ordered_sample_pair.h
View file @
0bd9ec07
...
...
@@ -20,7 +20,7 @@ namespace dlib
_index1
(
0
),
_index2
(
0
)
{
_distance
=
std
::
numeric_limits
<
double
>::
infinity
()
;
_distance
=
1
;
}
ordered_sample_pair
(
...
...
@@ -28,7 +28,7 @@ namespace dlib
const
unsigned
long
idx2
)
{
_distance
=
std
::
numeric_limits
<
double
>::
infinity
()
;
_distance
=
1
;
_index1
=
idx1
;
_index2
=
idx2
;
}
...
...
dlib/graph_utils/ordered_sample_pair_abstract.h
View file @
0bd9ec07
...
...
@@ -30,7 +30,7 @@ namespace dlib
ensures
- #index1() == 0
- #index2() == 0
- #distance() ==
std::numeric_limits<double>::infinity()
- #distance() ==
1
!*/
ordered_sample_pair
(
...
...
@@ -41,7 +41,7 @@ namespace dlib
ensures
- #index1() == idx1
- #index2() == idx2
- #distance() ==
std::numeric_limits<double>::infinity()
- #distance() ==
1
!*/
ordered_sample_pair
(
...
...
dlib/graph_utils/sample_pair.h
View file @
0bd9ec07
...
...
@@ -20,7 +20,7 @@ namespace dlib
_index1
(
0
),
_index2
(
0
)
{
_distance
=
std
::
numeric_limits
<
double
>::
infinity
()
;
_distance
=
1
;
}
sample_pair
(
...
...
@@ -28,7 +28,7 @@ namespace dlib
const
unsigned
long
idx2
)
{
_distance
=
std
::
numeric_limits
<
double
>::
infinity
()
;
_distance
=
1
;
if
(
idx1
<
idx2
)
{
_index1
=
idx1
;
...
...
dlib/graph_utils/sample_pair_abstract.h
View file @
0bd9ec07
...
...
@@ -34,7 +34,7 @@ namespace dlib
ensures
- #index1() == 0
- #index2() == 0
- #distance() ==
std::numeric_limits<double>::infinity()
- #distance() ==
1
!*/
sample_pair
(
...
...
@@ -45,7 +45,7 @@ namespace dlib
ensures
- #index1() == min(idx1,idx2)
- #index2() == max(idx1,idx2)
- #distance() ==
std::numeric_limits<double>::infinity()
- #distance() ==
1
!*/
sample_pair
(
...
...
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