Commit 481bee84 authored by Davis King's avatar Davis King

fixed linker errors

parent 1e85684c
...@@ -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
......
...@@ -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
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment