All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Classes | Namespaces | Functions
k_means_clustering_engine.hpp File Reference
#include "paal/utils/type_functions.hpp"
#include "paal/utils/functors.hpp"
#include "paal/utils/irange.hpp"
#include <boost/range/combine.hpp>
#include <boost/range/adaptor/indexed.hpp>
#include <boost/range/algorithm_ext/iota.hpp>
#include <boost/range/algorithm/for_each.hpp>
#include <vector>
#include <random>
#include <iostream>

Go to the source code of this file.

Classes

struct  paal::k_means_visitor
 k means visitor More...
 

Namespaces

 paal
 global namespace of project.
 

Functions

template<class RangeLeft , class RangeRight >
auto paal::distance_square (RangeLeft &&lrange, RangeRight &&rrange)
 
template<class Point , class Centers >
auto paal::closest_to (Point &&point, Centers &&centers)
 
template<class Points , class Centers , class Centroid , class ClosestTo , class OutputIterator , class CentroidEqual = utils::equal_to, class Visitor = k_means_visitor>
auto paal::k_means (Points &&points, Centers &centers, Centroid centroid, ClosestTo closest_to, OutputIterator result, CentroidEqual c_equal=CentroidEqual{}, Visitor visitor=Visitor{})
 
template<typename Points , typename OutputIterator , typename RNG = std::default_random_engine>
auto paal::get_random_centers (Points &&points, int number_of_centers, OutputIterator out, RNG &&rng=std::default_random_engine{})
 
template<typename Points , typename RNG = std::default_random_engine>
auto paal::get_random_clusters (Points &&points, int number_of_clusters, RNG &&rng=std::default_random_engine{})
 

Detailed Description

Author
Piotr Smulewicz
Version
1.0
Date
2014-06-26

Definition in file k_means_clustering_engine.hpp.