Fast implementation of PROBI.
More...
#include <FastCoreset.hpp>
Fast implementation of PROBI.
PROBI is a clustering algorithm for the probabilistic Euclidean k-median problem.
template<typename Iterator1 , typename Iterator2 >
void FastCoreset::computeCoreset |
( |
Iterator1 |
inputBegin, |
|
|
Iterator1 |
inputEnd, |
|
|
Iterator2 |
output, |
|
|
size_t |
n = 0 |
|
) |
| |
Computes a k-median coreset
- Parameters
-
begin | Input point set: begin |
end | Input point set: end |
output | Output iterator |
n | Size of input (optional) |
- Returns
- k-median coreset
int FastCoreset::getAllSamplesSize |
( |
) | |
const |
Gets the ring sample size.
- Returns
- Ring sample size
int FastCoreset::getK |
( |
) | |
const |
Gets number of centers.
- Returns
- Number of centers
int FastCoreset::getKumarMedianIterations |
( |
) | |
const |
Gets number of iterations in Kumar's k-median algorithm (fallback)
- Returns
- Maximum number of iterations
int FastCoreset::getMaxLloydClusteringIterations |
( |
) | |
const |
Gets number of "probabilistic Lloyd" iterations.
- Returns
- Maximum number of iterations
int FastCoreset::getWeiszfeldMedianIterations |
( |
) | |
const |
Gets number of Weiszfeld iterations (approximation of 1-median)
- Returns
- Maximum number of iterations
void FastCoreset::setAllSamplesSize |
( |
int |
allSamplesSize) | |
|
Sets the ring sample size.
- Parameters
-
allSamplesSize | Ring sample size |
void FastCoreset::setK |
( |
int |
k) | |
|
Sets number of centers.
- Parameters
-
void FastCoreset::setKumarMedianIterations |
( |
int |
kumarMedianIterations) | |
|
Sets number of iterations in Kumar's k-median algorithm (fallback)
- Parameters
-
kumarMedianIterations | Maximum number of iterations |
void FastCoreset::setMaxLloydClusteringIterations |
( |
int |
maxLloydClusteringIterations) | |
|
Sets number of "probabilistic Lloyd" iterations.
- Parameters
-
maxLloydClusteringIterations | Maximum number of iterations |
void FastCoreset::setWeiszfeldMedianIterations |
( |
int |
weiszfeldMedianIterations) | |
|
Sets number of Weiszfeld iterations (approximation of 1-median)
- Parameters
-
weiszfeldMedianIterations | Maximum number of iterations |
The documentation for this class was generated from the following files: