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
481bee84
Commit
481bee84
authored
Nov 05, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed linker errors
parent
1e85684c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
chinese_whispers.h
dlib/clustering/chinese_whispers.h
+4
-4
modularity_clustering.h
dlib/clustering/modularity_clustering.h
+7
-7
No files found.
dlib/clustering/chinese_whispers.h
View file @
481bee84
...
...
@@ -13,7 +13,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
unsigned
long
chinese_whispers
(
inline
unsigned
long
chinese_whispers
(
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
std
::
vector
<
unsigned
long
>&
labels
,
const
unsigned
long
num_iterations
,
...
...
@@ -89,7 +89,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
unsigned
long
chinese_whispers
(
inline
unsigned
long
chinese_whispers
(
const
std
::
vector
<
sample_pair
>&
edges
,
std
::
vector
<
unsigned
long
>&
labels
,
const
unsigned
long
num_iterations
,
...
...
@@ -105,7 +105,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
unsigned
long
chinese_whispers
(
inline
unsigned
long
chinese_whispers
(
const
std
::
vector
<
sample_pair
>&
edges
,
std
::
vector
<
unsigned
long
>&
labels
,
const
unsigned
long
num_iterations
=
100
...
...
@@ -117,7 +117,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
unsigned
long
chinese_whispers
(
inline
unsigned
long
chinese_whispers
(
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
std
::
vector
<
unsigned
long
>&
labels
,
const
unsigned
long
num_iterations
=
100
...
...
dlib/clustering/modularity_clustering.h
View file @
481bee84
...
...
@@ -16,7 +16,7 @@ namespace dlib
namespace
impl
{
double
newman_cluster_split
(
inline
double
newman_cluster_split
(
dlib
::
rand
&
rnd
,
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
const
matrix
<
double
,
0
,
1
>&
node_degrees
,
// k from the Newman paper
...
...
@@ -153,7 +153,7 @@ namespace dlib
// -------------------------------------------------------------------------------------
unsigned
long
newman_cluster_helper
(
inline
unsigned
long
newman_cluster_helper
(
dlib
::
rand
&
rnd
,
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
const
matrix
<
double
,
0
,
1
>&
node_degrees
,
// k from the Newman paper
...
...
@@ -295,7 +295,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
unsigned
long
newman_cluster
(
inline
unsigned
long
newman_cluster
(
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
std
::
vector
<
unsigned
long
>&
labels
,
const
double
eps
=
1e-4
,
...
...
@@ -337,7 +337,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
unsigned
long
newman_cluster
(
inline
unsigned
long
newman_cluster
(
const
std
::
vector
<
sample_pair
>&
edges
,
std
::
vector
<
unsigned
long
>&
labels
,
const
double
eps
=
1e-4
,
...
...
@@ -355,7 +355,7 @@ namespace dlib
namespace
impl
{
std
::
vector
<
unsigned
long
>
remap_labels
(
inline
std
::
vector
<
unsigned
long
>
remap_labels
(
const
std
::
vector
<
unsigned
long
>&
labels
,
unsigned
long
&
num_labels
)
...
...
@@ -398,7 +398,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
double
modularity
(
inline
double
modularity
(
const
std
::
vector
<
sample_pair
>&
edges
,
const
std
::
vector
<
unsigned
long
>&
labels
)
...
...
@@ -458,7 +458,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
double
modularity
(
inline
double
modularity
(
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
const
std
::
vector
<
unsigned
long
>&
labels
)
...
...
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