Thrill  0.1
k-means_step3.cpp File Reference
#include <thrill/api/all_gather.hpp>
#include <thrill/api/cache.hpp>
#include <thrill/api/generate.hpp>
#include <thrill/api/print.hpp>
#include <thrill/api/reduce_by_key.hpp>
#include <thrill/api/sample.hpp>
#include <ostream>
#include <random>
#include <vector>
+ Include dependency graph for k-means_step3.cpp:

Go to the source code of this file.

Functions

int main ()
 
std::ostream & operator<< (std::ostream &os, const Point &p)
 [Point class] More...
 
std::ostream & operator<< (std::ostream &os, const ClosestCenter &cc)
 make ostream-able for Print() More...
 
void Process (thrill::Context &ctx)
 [ClosestCenter class] More...
 

Function Documentation

◆ main()

int main ( )

Definition at line 133 of file k-means_step3.cpp.

References Process(), and thrill::api::Run().

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  os,
const Point &  p 
)

[Point class]

make ostream-able for Print()

Definition at line 45 of file k-means_step3.cpp.

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  os,
const ClosestCenter &  cc 
)

make ostream-able for Print()

Definition at line 57 of file k-means_step3.cpp.

◆ Process()

void Process ( thrill::Context ctx)

[ClosestCenter class]

our main processing method

[step3 count 1]

[step3 count 1]

[step3 ReduceByKey]

[step3 ReduceByKey]

[step3 ReduceByKey divide by count]

[step3 ReduceByKey divide by count]

Definition at line 64 of file k-means_step3.cpp.

References thrill::api::Generate().

Referenced by main().