Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
481bee84
"git@developer.sourcefind.cn:OpenDAS/dlib.git" did not exist on "3f7911483be0cfb7d6d854d8276068e65e264b60"
Commit
481bee84
authored
Nov 04, 2012
by
Davis King
Browse files
fixed linker errors
parent
1e85684c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
dlib/clustering/chinese_whispers.h
dlib/clustering/chinese_whispers.h
+4
-4
dlib/clustering/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
...
@@ -13,7 +13,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
unsigned
long
chinese_whispers
(
inline
unsigned
long
chinese_whispers
(
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
std
::
vector
<
unsigned
long
>&
labels
,
std
::
vector
<
unsigned
long
>&
labels
,
const
unsigned
long
num_iterations
,
const
unsigned
long
num_iterations
,
...
@@ -89,7 +89,7 @@ namespace dlib
...
@@ -89,7 +89,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
unsigned
long
chinese_whispers
(
inline
unsigned
long
chinese_whispers
(
const
std
::
vector
<
sample_pair
>&
edges
,
const
std
::
vector
<
sample_pair
>&
edges
,
std
::
vector
<
unsigned
long
>&
labels
,
std
::
vector
<
unsigned
long
>&
labels
,
const
unsigned
long
num_iterations
,
const
unsigned
long
num_iterations
,
...
@@ -105,7 +105,7 @@ namespace dlib
...
@@ -105,7 +105,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
unsigned
long
chinese_whispers
(
inline
unsigned
long
chinese_whispers
(
const
std
::
vector
<
sample_pair
>&
edges
,
const
std
::
vector
<
sample_pair
>&
edges
,
std
::
vector
<
unsigned
long
>&
labels
,
std
::
vector
<
unsigned
long
>&
labels
,
const
unsigned
long
num_iterations
=
100
const
unsigned
long
num_iterations
=
100
...
@@ -117,7 +117,7 @@ namespace dlib
...
@@ -117,7 +117,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
unsigned
long
chinese_whispers
(
inline
unsigned
long
chinese_whispers
(
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
std
::
vector
<
unsigned
long
>&
labels
,
std
::
vector
<
unsigned
long
>&
labels
,
const
unsigned
long
num_iterations
=
100
const
unsigned
long
num_iterations
=
100
...
...
dlib/clustering/modularity_clustering.h
View file @
481bee84
...
@@ -16,7 +16,7 @@ namespace dlib
...
@@ -16,7 +16,7 @@ namespace dlib
namespace
impl
namespace
impl
{
{
double
newman_cluster_split
(
inline
double
newman_cluster_split
(
dlib
::
rand
&
rnd
,
dlib
::
rand
&
rnd
,
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
const
matrix
<
double
,
0
,
1
>&
node_degrees
,
// k from the Newman paper
const
matrix
<
double
,
0
,
1
>&
node_degrees
,
// k from the Newman paper
...
@@ -153,7 +153,7 @@ namespace dlib
...
@@ -153,7 +153,7 @@ namespace dlib
// -------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------
unsigned
long
newman_cluster_helper
(
inline
unsigned
long
newman_cluster_helper
(
dlib
::
rand
&
rnd
,
dlib
::
rand
&
rnd
,
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
const
matrix
<
double
,
0
,
1
>&
node_degrees
,
// k from the Newman paper
const
matrix
<
double
,
0
,
1
>&
node_degrees
,
// k from the Newman paper
...
@@ -295,7 +295,7 @@ namespace dlib
...
@@ -295,7 +295,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
unsigned
long
newman_cluster
(
inline
unsigned
long
newman_cluster
(
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
std
::
vector
<
unsigned
long
>&
labels
,
std
::
vector
<
unsigned
long
>&
labels
,
const
double
eps
=
1e-4
,
const
double
eps
=
1e-4
,
...
@@ -337,7 +337,7 @@ namespace dlib
...
@@ -337,7 +337,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
unsigned
long
newman_cluster
(
inline
unsigned
long
newman_cluster
(
const
std
::
vector
<
sample_pair
>&
edges
,
const
std
::
vector
<
sample_pair
>&
edges
,
std
::
vector
<
unsigned
long
>&
labels
,
std
::
vector
<
unsigned
long
>&
labels
,
const
double
eps
=
1e-4
,
const
double
eps
=
1e-4
,
...
@@ -355,7 +355,7 @@ namespace dlib
...
@@ -355,7 +355,7 @@ namespace dlib
namespace
impl
namespace
impl
{
{
std
::
vector
<
unsigned
long
>
remap_labels
(
inline
std
::
vector
<
unsigned
long
>
remap_labels
(
const
std
::
vector
<
unsigned
long
>&
labels
,
const
std
::
vector
<
unsigned
long
>&
labels
,
unsigned
long
&
num_labels
unsigned
long
&
num_labels
)
)
...
@@ -398,7 +398,7 @@ namespace dlib
...
@@ -398,7 +398,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
double
modularity
(
inline
double
modularity
(
const
std
::
vector
<
sample_pair
>&
edges
,
const
std
::
vector
<
sample_pair
>&
edges
,
const
std
::
vector
<
unsigned
long
>&
labels
const
std
::
vector
<
unsigned
long
>&
labels
)
)
...
@@ -458,7 +458,7 @@ namespace dlib
...
@@ -458,7 +458,7 @@ namespace dlib
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
double
modularity
(
inline
double
modularity
(
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
const
std
::
vector
<
ordered_sample_pair
>&
edges
,
const
std
::
vector
<
unsigned
long
>&
labels
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