MLPACK
1.0.11
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
mlpack
methods
kmeans
refined_start.hpp
Go to the documentation of this file.
1
24
#ifndef __MLPACK_METHODS_KMEANS_REFINED_START_HPP
25
#define __MLPACK_METHODS_KMEANS_REFINED_START_HPP
26
27
#include <
mlpack/core.hpp
>
28
29
namespace
mlpack {
30
namespace
kmeans {
31
47
class
RefinedStart
48
{
49
public
:
55
RefinedStart
(
const
size_t
samplings
= 100,
56
const
double
percentage
= 0.02) :
57
samplings
(
samplings
),
percentage
(
percentage
) { }
58
69
template
<
typename
MatType>
70
void
Cluster
(
const
MatType& data,
71
const
size_t
clusters,
72
arma::Col<size_t>& assignments)
const
;
73
75
size_t
Samplings
()
const
{
return
samplings
; }
77
size_t
&
Samplings
() {
return
samplings
; }
78
80
double
Percentage
()
const
{
return
percentage
; }
82
double
&
Percentage
() {
return
percentage
; }
83
84
private
:
86
size_t
samplings
;
88
double
percentage
;
89
};
90
91
};
// namespace kmeans
92
};
// namespace mlpack
93
94
// Include implementation.
95
#include "refined_start_impl.hpp"
96
97
#endif
Generated by
1.8.3.1