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
0f88b396
Commit
0f88b396
authored
Nov 03, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added another constructor for sample pair objects. This one doesn't require
a distance argument.
parent
febbe828
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
0 deletions
+50
-0
ordered_sample_pair.h
dlib/manifold_regularization/ordered_sample_pair.h
+10
-0
ordered_sample_pair_abstract.h
dlib/manifold_regularization/ordered_sample_pair_abstract.h
+11
-0
sample_pair.h
dlib/manifold_regularization/sample_pair.h
+18
-0
sample_pair_abstract.h
dlib/manifold_regularization/sample_pair_abstract.h
+11
-0
No files found.
dlib/manifold_regularization/ordered_sample_pair.h
View file @
0f88b396
...
...
@@ -23,6 +23,16 @@ namespace dlib
_distance
=
std
::
numeric_limits
<
double
>::
infinity
();
}
ordered_sample_pair
(
const
unsigned
long
idx1
,
const
unsigned
long
idx2
)
{
_distance
=
std
::
numeric_limits
<
double
>::
infinity
();
_index1
=
idx1
;
_index2
=
idx2
;
}
ordered_sample_pair
(
const
unsigned
long
idx1
,
const
unsigned
long
idx2
,
...
...
dlib/manifold_regularization/ordered_sample_pair_abstract.h
View file @
0f88b396
...
...
@@ -33,6 +33,17 @@ namespace dlib
- #distance() == std::numeric_limits<double>::infinity()
!*/
ordered_sample_pair
(
const
unsigned
long
idx1
,
const
unsigned
long
idx2
);
/*!
ensures
- #index1() == idx1
- #index2() == idx2
- #distance() == std::numeric_limits<double>::infinity()
!*/
ordered_sample_pair
(
const
unsigned
long
idx1
,
const
unsigned
long
idx2
,
...
...
dlib/manifold_regularization/sample_pair.h
View file @
0f88b396
...
...
@@ -23,6 +23,24 @@ namespace dlib
_distance
=
std
::
numeric_limits
<
double
>::
infinity
();
}
sample_pair
(
const
unsigned
long
idx1
,
const
unsigned
long
idx2
)
{
_distance
=
std
::
numeric_limits
<
double
>::
infinity
();
if
(
idx1
<
idx2
)
{
_index1
=
idx1
;
_index2
=
idx2
;
}
else
{
_index1
=
idx2
;
_index2
=
idx1
;
}
}
sample_pair
(
const
unsigned
long
idx1
,
const
unsigned
long
idx2
,
...
...
dlib/manifold_regularization/sample_pair_abstract.h
View file @
0f88b396
...
...
@@ -37,6 +37,17 @@ namespace dlib
- #distance() == std::numeric_limits<double>::infinity()
!*/
sample_pair
(
const
unsigned
long
idx1
,
const
unsigned
long
idx2
);
/*!
ensures
- #index1() == min(idx1,idx2)
- #index2() == max(idx1,idx2)
- #distance() == std::numeric_limits<double>::infinity()
!*/
sample_pair
(
const
unsigned
long
idx1
,
const
unsigned
long
idx2
,
...
...
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